From 8b9e2188e4ef4655b163988a0292fcf291f46725 Mon Sep 17 00:00:00 2001 From: "C. Mangla" Date: Sat, 28 Nov 2020 00:40:36 +0000 Subject: [PATCH] Add `job.refresh()` to docs (#1384) --- docs/docs/jobs.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/docs/jobs.md b/docs/docs/jobs.md index 3bc1ab0..e0205ce 100644 --- a/docs/docs/jobs.md +++ b/docs/docs/jobs.md @@ -123,6 +123,7 @@ Some interesting job attributes include: * `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.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()`.