Task added to update 'sending' notifications after 72 hours, set task to temporary-failure.

This commit is contained in:
Nicholas Staples
2016-06-08 15:25:57 +01:00
parent 69935f0476
commit 8a1f4de217
4 changed files with 76 additions and 3 deletions

View File

@@ -67,6 +67,11 @@ class Config(object):
'task': 'delete-successful-notifications',
'schedule': crontab(minute=0, hour='0,1,2'),
'options': {'queue': 'periodic'}
},
'timeout-sending-notifications': {
'task': 'timeout-sending-notifications',
'schedule': crontab(minute=0, hour='0,1,2'),
'options': {'queue': 'periodic'}
}
}
CELERY_QUEUES = [
@@ -99,6 +104,8 @@ class Config(object):
STATSD_PORT = None
STATSD_PREFIX = None
SENDING_NOTIFICATIONS_TIMEOUT_PERIOD = 259200
class Development(Config):
DEBUG = True