Tivix / django-cron

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 :-)
www.tivix.com
MIT License
900 stars 193 forks source link

Exit with failure when cron classes can't be loaded #79

Closed koterpillar closed 4 years ago

koterpillar commented 8 years ago

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.

koterpillar commented 8 years ago

Ping?

tab-cmd commented 7 years ago

@koterpillar this makes sense and works for me 👍 Will add to PR for next version. Thanks!

koterpillar commented 4 years ago

Uncluttering my PRs.