mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-02 17:31:14 -05:00
Added the schedule into celery beat.
run the delete jobs 20 mins apart, 00:00 -> sms 00:20 -> email 00:40 -> letters
This commit is contained in:
@@ -119,14 +119,19 @@ class Config(object):
|
|||||||
'schedule': timedelta(minutes=66),
|
'schedule': timedelta(minutes=66),
|
||||||
'options': {'queue': 'periodic'}
|
'options': {'queue': 'periodic'}
|
||||||
},
|
},
|
||||||
'delete-failed-notifications': {
|
'delete-sms-notifications': {
|
||||||
'task': 'delete-failed-notifications',
|
'task': 'delete-sms-notifications',
|
||||||
'schedule': crontab(minute=0, hour=0),
|
'schedule': crontab(minute=0, hour=0),
|
||||||
'options': {'queue': 'periodic'}
|
'options': {'queue': 'periodic'}
|
||||||
},
|
},
|
||||||
'delete-successful-notifications': {
|
'delete-email-notifications': {
|
||||||
'task': 'delete-successful-notifications',
|
'task': 'delete-email-notifications',
|
||||||
'schedule': crontab(minute=0, hour=1),
|
'schedule': crontab(minute=20, hour=0),
|
||||||
|
'options': {'queue': 'periodic'}
|
||||||
|
},
|
||||||
|
'delete-letter-notifications': {
|
||||||
|
'task': 'delete-letter-notifications',
|
||||||
|
'schedule': crontab(minute=40, hour=0),
|
||||||
'options': {'queue': 'periodic'}
|
'options': {'queue': 'periodic'}
|
||||||
},
|
},
|
||||||
'send-daily-performance-platform-stats': {
|
'send-daily-performance-platform-stats': {
|
||||||
|
|||||||
Reference in New Issue
Block a user