From aa5c58f2229eee95b71361286c8d10ede953c948 Mon Sep 17 00:00:00 2001 From: Selwin Ong Date: Sat, 16 Nov 2024 15:06:55 +0700 Subject: [PATCH] Update docs --- CHANGES.md | 5 +++++ docs/docs/results.md | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index c1ad7837..af1eb4a9 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,3 +1,8 @@ +### RQ 2.0.1 (Unreleased) +* `job.id` must not contain `:`. Thanks @sanurielf! +* Various type hint improvements by @terencehonles! +* `job.ended_at` should be set when job is run synchronously. Thanks @alexprabhat99! + ### RQ 2.0 (2024-10-28) New Features: diff --git a/docs/docs/results.md b/docs/docs/results.md index 80741fe8..f642ca67 100644 --- a/docs/docs/results.md +++ b/docs/docs/results.md @@ -134,7 +134,7 @@ following attributes: ```python job = Job.fetch(id='my_id', connection=redis) result = job.latest_result() # returns Result(id=uid, type=SUCCESSFUL) -if result == result.Type.SUCCESSFUL: +if result.type == result.Type.SUCCESSFUL: print(result.return_value) else: print(result.exc_string)