Update docs

This commit is contained in:
Selwin Ong 2024-11-16 15:06:55 +07:00
parent dbbbd09463
commit aa5c58f222
2 changed files with 6 additions and 1 deletions

View File

@ -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) ### RQ 2.0 (2024-10-28)
New Features: New Features:

View File

@ -134,7 +134,7 @@ following attributes:
```python ```python
job = Job.fetch(id='my_id', connection=redis) job = Job.fetch(id='my_id', connection=redis)
result = job.latest_result() # returns Result(id=uid, type=SUCCESSFUL) 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) print(result.return_value)
else: else:
print(result.exc_string) print(result.exc_string)