Skip to content
Snippets Groups Projects
Verified Commit 9bdc3b2f authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Retry backup cronjob on failure.

parent 09fc20c9
No related branches found
No related tags found
No related merge requests found
......@@ -5,7 +5,9 @@ from django_cron import CronJobBase, Schedule
class Backup(CronJobBase):
RUN_AT_TIMES = settings.DBBACKUP_CRON_TIMES
schedule = Schedule(run_at_times=RUN_AT_TIMES)
RETRY_AFTER_FAILURE_MINS = 5
schedule = Schedule(run_at_times=RUN_AT_TIMES, retry_after_failure_mins=RETRY_AFTER_FAILURE_MINS)
code = 'biscuit.core.Backup'
def do(self):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment