mirror of https://github.com/peter4431/rq.git
Pass job ID to error handlers (#1201)
The worker handles exceptions in the job outside of the job's own context, so an exception handler / logger cannot call `get_current_job()` to obtain the job ID. The job ID can be used to locate the job in the failed job registry, which allows useful behaviors such as linking to a failed job on a dashboard in an error report. Closes #1192.main
parent
dc299bc7ec
commit
8f7dbf1b1d
Loading…
Reference in New Issue