Add `job.refresh()` to docs (#1384)

main
C. Mangla 4 years ago committed by GitHub
parent 81ea1d26d1
commit 8b9e2188e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -123,6 +123,7 @@ Some interesting job attributes include:
* `job.exc_info` stores exception information if job doesn't finish successfully. * `job.exc_info` stores exception information if job doesn't finish successfully.
* `job.last_heartbeat` the latest timestamp that's periodically updated when the job is executing. Can be used to determine if the job is still active. * `job.last_heartbeat` the latest timestamp that's periodically updated when the job is executing. Can be used to determine if the job is still active.
* `job.worker_name` returns the worker name currently executing this job. * `job.worker_name` returns the worker name currently executing this job.
* `job.refresh()` Update the job instance object with values fetched from Redis.
If you want to efficiently fetch a large number of jobs, use `Job.fetch_many()`. If you want to efficiently fetch a large number of jobs, use `Job.fetch_many()`.

Loading…
Cancel
Save