mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-05 02:41:14 -05:00
Spread out the scheduled jobs.
Before the longer tasks all ran on the hour, at midnight, 1 and 2. Now we run one at midnight, one at quarter past, half past then at quarter too. Trying to spread the load.
This commit is contained in:
@@ -119,7 +119,7 @@ class Config(object):
|
|||||||
},
|
},
|
||||||
'delete-failed-notifications': {
|
'delete-failed-notifications': {
|
||||||
'task': 'delete-failed-notifications',
|
'task': 'delete-failed-notifications',
|
||||||
'schedule': crontab(minute=0, hour='0,1,2'),
|
'schedule': crontab(minute=15, hour='0,1,2'),
|
||||||
'options': {'queue': 'periodic'}
|
'options': {'queue': 'periodic'}
|
||||||
},
|
},
|
||||||
'delete-successful-notifications': {
|
'delete-successful-notifications': {
|
||||||
@@ -139,12 +139,12 @@ class Config(object):
|
|||||||
},
|
},
|
||||||
'timeout-sending-notifications': {
|
'timeout-sending-notifications': {
|
||||||
'task': 'timeout-sending-notifications',
|
'task': 'timeout-sending-notifications',
|
||||||
'schedule': crontab(minute=0, hour='0,1,2'),
|
'schedule': crontab(minute=30, hour='0,1,2'),
|
||||||
'options': {'queue': 'periodic'}
|
'options': {'queue': 'periodic'}
|
||||||
},
|
},
|
||||||
'remove_csv_files': {
|
'remove_csv_files': {
|
||||||
'task': 'remove_csv_files',
|
'task': 'remove_csv_files',
|
||||||
'schedule': crontab(minute=1, hour='0,1,2'),
|
'schedule': crontab(minute=45, hour='0,1,2'),
|
||||||
'options': {'queue': 'periodic'}
|
'options': {'queue': 'periodic'}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user