Write cron business logic as a Python class and let this app do the rest! It enables Django projects to schedule cron tasks, tracks their success / failures, manages contention (via a cache) etc. Basically takes care of all the boring work for you :-)
The runcrons command is meant to be run unattended, therefore when it can't run due to CRON_CLASSES being wrong, the exit status must be set to failure. Otherwise the only indication is the output, which is typically discarded by cron and similar tools.
The current behavior can lead to very dire effects of cron jobs not running with no failures recorded in CronJobLog.
The
runcrons
command is meant to be run unattended, therefore when it can't run due toCRON_CLASSES
being wrong, the exit status must be set to failure. Otherwise the only indication is the output, which is typically discarded bycron
and similar tools.The current behavior can lead to very dire effects of cron jobs not running with no failures recorded in
CronJobLog
.