Skip to content

Commit

Permalink
Reschedule backups for :40 (#795)
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew-Dickinson authored Dec 25, 2024
1 parent 7f6961a commit c76914d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/meshapi/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,11 @@ def run_update_from_uisp() -> None:
if MESHDB_ENVIRONMENT == "prod2":
celery_app.conf.beat_schedule["run-database-backup-hourly"] = {
"task": "meshapi.tasks.run_database_backup",
"schedule": crontab(minute="20", hour="*/1"),
"schedule": crontab(minute="40", hour="*/1"),
}

if MESHDB_ENVIRONMENT == "dev3":
celery_app.conf.beat_schedule["run-reset-dev-database-daily"] = {
"task": "meshapi.tasks.run_database_backup",
"schedule": crontab(minute="30", hour="0"),
"schedule": crontab(minute="45", hour="0"),
}

0 comments on commit c76914d

Please sign in to comment.