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

Failed Cron task continuously running if task is failed #87

Closed omprakashpatel closed 7 years ago

omprakashpatel commented 8 years ago

There is no configuration for stopping task if it fails for a fixed number of times. Currently if my task is failing it will run again and again until it success. there should be a config setting for "Max num of failures" to stop that.

there is one 'MIN_NUM_FAILURES' attribute to set for email notification but this does not stops task!

tab-cmd commented 7 years ago

107 also addresses this and other problems with handling cron failures. Closing this as a duplicate for now. We will focus on that PR.