mirror of https://github.com/peter4431/rq.git
job: add get_meta() function (#1536)
* job: add get_meta() function The newly introduced function returns meta data stored for the job. This is required since job.meta stays an empty dict until the job is finished or failed. With the new function it's possible to store arbiatraty states/stages of the job and allow the user to track progress. A long running job may return custom stages like `downloading_data`, `unpacking_data`, `processing_data`, etc. This may allow better interfaces since users can track progress. Signed-off-by: Paul Spooren <mail@aparcar.org> * docs: add missing `refresh` arg to get_status() This was previously missing. Signed-off-by: Paul Spooren <mail@aparcar.org>main
parent
d41f60b906
commit
63abea1522
Loading…
Reference in New Issue