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)