Add task to run every minute that will switch provider on slow delivery notifications

This commit is contained in:
Imdad Ahad
2017-02-13 15:05:39 +00:00
parent 60f63a30db
commit d058626119
2 changed files with 48 additions and 2 deletions

View File

@@ -131,6 +131,11 @@ class Config(object):
'schedule': crontab(minute=30, hour=0), # 00:30
'options': {'queue': 'periodic'}
},
'switch-current-sms-provider-on-slow-delivery': {
'task': 'switch-current-sms-provider-on-slow-delivery',
'schedule': crontab(), # Every minute
'options': {'queue': 'periodic'}
},
'timeout-sending-notifications': {
'task': 'timeout-sending-notifications',
'schedule': crontab(minute=0, hour='0,1,2'),