mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-17 02:32:32 -05:00
Run delete-notifications-older-than-retention at 3am
Moving it from 4:15am to 3:00. This will mean we do more deleting before the 'work day' starts and improve our DB performance. I've looked at the last 14 day of logs for the `create-nightly-notification-status` subtasks and the `create-nightly-billing` subtasks. The latest they appear to finish is 2.30AM. There were some outliers but I believe these were people running the tasks in the middle of the day as a manual process. Obviously, this still means there is a risk that those tasks conflict with `delete-notifications-older-than-retention`, even more so now that we move this to 3am.
This commit is contained in:
@@ -240,7 +240,7 @@ class Config(object):
|
||||
},
|
||||
'delete-notifications-older-than-retention': {
|
||||
'task': 'delete-notifications-older-than-retention',
|
||||
'schedule': crontab(hour=4, minute=15), # after 'create-nightly-notification-status'
|
||||
'schedule': crontab(hour=3, minute=0), # after 'create-nightly-notification-status'
|
||||
'options': {'queue': QueueNames.PERIODIC}
|
||||
},
|
||||
'delete-inbound-sms': {
|
||||
|
||||
Reference in New Issue
Block a user