Observability of one-off tasks #906
Unanswered
browniebroke
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Does your project use Sentry or a similar application monitoring tool? Have you tried putting logging statements in your one-off-tasks? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
We use one-off tasks to run some operational scripts that do some data migrations. These one-off tend to be a bit more sensitive than others periodic tasks, and we're looking at a way to add more observability around them.
I was wondering if there is anything different about the task request when it's triggered as "one-off" vs not? Has anyone done anything like that before? Something that we could inspect when the task is starts/finishes, and log it to notify the team that a one-off script was run.
I looked at the code to try to understand whether some attributes of the
PeriodicTask
model would be alongside the task request (e.g. as request headers), but I didn't see anything.If not, would that be a welcome addition to the library? Would that live better here or in Celery itself? I assume I could probably extend the scheduler to do that on my end...
Beta Was this translation helpful? Give feedback.
All reactions