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:
Martyn Inglis
2017-04-03 11:17:27 +01:00
parent deaaa259f4
commit 8f5e1318eb

View File

@@ -119,7 +119,7 @@ class Config(object):
},
'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'}
},
'delete-successful-notifications': {
@@ -139,12 +139,12 @@ class Config(object):
},
'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'}
},
'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'}
}
}