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
I'm thinking of using the package in a small project and had an idea for a feature that might be useful to others.
When working with scheduled tasks, I like having some control over what happens after a job succeeds or fails.
For example, on success, I usually ping a monitoring service (like healthchecks.io) to confirm the job ran on schedule.
On failure, I might send an email if it’s critical, just log the error, or even do nothing—since my monitoring tool would alert me anyway.
Most packages I’ve used don’t offer this level of flexibility, so I usually end up handling it manually either in the Django management command itself, or directly in the crontab definition (e.g. chaining a curl after the command like:
0 * * * * manage.py stuff && curl https://monitor-url).
Feature idea:
When defining a task or job, allow users to pass custom success and failure callbacks (with optional args/kwargs).
Alternatively, provide a simple way to override the default behavior—for example, to disable failure emails or trigger alerts for jobs not tied to a specific task.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi again!
I'm thinking of using the package in a small project and had an idea for a feature that might be useful to others.
When working with scheduled tasks, I like having some control over what happens after a job succeeds or fails.
For example, on success, I usually ping a monitoring service (like healthchecks.io) to confirm the job ran on schedule.
On failure, I might send an email if it’s critical, just log the error, or even do nothing—since my monitoring tool would alert me anyway.
Most packages I’ve used don’t offer this level of flexibility, so I usually end up handling it manually either in the Django management command itself, or directly in the crontab definition (e.g. chaining a curl after the command like:
0 * * * * manage.py stuff && curl https://monitor-url).
Feature idea:
When defining a task or job, allow users to pass custom success and failure callbacks (with optional args/kwargs).
Alternatively, provide a simple way to override the default behavior—for example, to disable failure emails or trigger alerts for jobs not tied to a specific task.
Would anyone else find this useful?
Beta Was this translation helpful? Give feedback.
All reactions