Run task every 15 minutes.

Move variable to task from config.
This commit is contained in:
Rebecca Law
2018-03-26 10:26:24 +01:00
parent 612843d509
commit 9549ada200
2 changed files with 6 additions and 7 deletions

View File

@@ -267,9 +267,9 @@ class Config(object):
'schedule': crontab(hour=0, minute=5),
'options': {'queue': QueueNames.PERIODIC}
},
'replay_created_notifications': {
'task': 'replay_created_notifications',
'schedule': crontab(minutes=15),
'replay-created-notifications': {
'task': 'replay-created-notifications',
'schedule': crontab(minute='0, 15, 24, 30, 45'),
'options': {'queue': QueueNames.PERIODIC}
}
}
@@ -284,9 +284,6 @@ class Config(object):
SENDING_NOTIFICATIONS_TIMEOUT_PERIOD = 259200 # 3 days
RESEND_CREATED_NOTIFICATIONS_OLDER_THAN = (60 * 60 * 4) + (60 * 15)
RESEND_LETTER_CREATED_NOTIFICATIONS_OLDER_THAN_DAYS = 2
SIMULATED_EMAIL_ADDRESSES = (
'simulate-delivered@notifications.service.gov.uk',
'simulate-delivered-2@notifications.service.gov.uk',