You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be really interesting to also have the args and kwargs so we could log them or perhaps triggering specific behavior when detecting certain arguments.
If that makes sense, I would happily open a PR with the required changes.
The text was updated successfully, but these errors were encountered:
frankie567
changed the title
Add args and kwargs to job context for on_job_start/on_job_end` hooks
Add args and kwargs to job context for on_job_start/on_job_end hooks
Sep 15, 2023
on_job_start
/on_job_end
hooks are really useful for adding logs, setting up monitoring tasks, etc.Currently, those hooks are passed a job context like this:
arq/arq/worker.py
Lines 551 to 560 in 9109c2e
It would be really interesting to also have the
args
andkwargs
so we could log them or perhaps triggering specific behavior when detecting certain arguments.This could look like this:
If that makes sense, I would happily open a PR with the required changes.
The text was updated successfully, but these errors were encountered: