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 :-)
This cronjob will run every minute because the check for retry_after_failure_mins is not run unless run_every_mins is specified.
Potential workaround is to set run_every_mins to large value that it would never trigger.. Altough this seems rather hacky, and a check for retry_after_failure_mins should be done when using run_at_times as well
Sample cronjob:
This cronjob will run every minute because the check for
retry_after_failure_mins
is not run unlessrun_every_mins
is specified.Potential workaround is to set
run_every_mins
to large value that it would never trigger.. Altough this seems rather hacky, and a check forretry_after_failure_mins
should be done when usingrun_at_times
as well