mirror of https://github.com/rq/rq.git
Update docs
This commit is contained in:
parent
dbbbd09463
commit
aa5c58f222
|
@ -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:
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue