mirror of
https://github.com/GSA/notifications-api.git
synced 2026-08-18 21:48:49 -04:00
Task added to update 'sending' notifications after 72 hours, set task to temporary-failure.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user