mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-01 07:35:34 -05:00
Examine and re-align jobs that run based on UTC time
This commit is contained in:
@@ -161,7 +161,7 @@ class Config(object):
|
|||||||
'broker_transport_options': {
|
'broker_transport_options': {
|
||||||
'visibility_timeout': 310,
|
'visibility_timeout': 310,
|
||||||
},
|
},
|
||||||
'timezone': getenv("TIMEZONE", 'America/New_York'),
|
'timezone': getenv("TIMEZONE", 'UTC'),
|
||||||
'imports': [
|
'imports': [
|
||||||
'app.celery.tasks',
|
'app.celery.tasks',
|
||||||
'app.celery.scheduled_tasks',
|
'app.celery.scheduled_tasks',
|
||||||
@@ -212,47 +212,47 @@ class Config(object):
|
|||||||
# app/celery/nightly_tasks.py
|
# app/celery/nightly_tasks.py
|
||||||
'timeout-sending-notifications': {
|
'timeout-sending-notifications': {
|
||||||
'task': 'timeout-sending-notifications',
|
'task': 'timeout-sending-notifications',
|
||||||
'schedule': crontab(hour=0, minute=5),
|
'schedule': crontab(hour=4, minute=5),
|
||||||
'options': {'queue': QueueNames.PERIODIC}
|
'options': {'queue': QueueNames.PERIODIC}
|
||||||
},
|
},
|
||||||
'create-nightly-billing': {
|
'create-nightly-billing': {
|
||||||
'task': 'create-nightly-billing',
|
'task': 'create-nightly-billing',
|
||||||
'schedule': crontab(hour=0, minute=15),
|
'schedule': crontab(hour=4, minute=15),
|
||||||
'options': {'queue': QueueNames.REPORTING}
|
'options': {'queue': QueueNames.REPORTING}
|
||||||
},
|
},
|
||||||
'create-nightly-notification-status': {
|
'create-nightly-notification-status': {
|
||||||
'task': 'create-nightly-notification-status',
|
'task': 'create-nightly-notification-status',
|
||||||
'schedule': crontab(hour=0, minute=30), # after 'timeout-sending-notifications'
|
'schedule': crontab(hour=4, minute=30), # after 'timeout-sending-notifications'
|
||||||
'options': {'queue': QueueNames.REPORTING}
|
'options': {'queue': QueueNames.REPORTING}
|
||||||
},
|
},
|
||||||
'delete-notifications-older-than-retention': {
|
'delete-notifications-older-than-retention': {
|
||||||
'task': 'delete-notifications-older-than-retention',
|
'task': 'delete-notifications-older-than-retention',
|
||||||
'schedule': crontab(hour=3, minute=0), # after 'create-nightly-notification-status'
|
'schedule': crontab(hour=7, minute=0), # after 'create-nightly-notification-status'
|
||||||
'options': {'queue': QueueNames.REPORTING}
|
'options': {'queue': QueueNames.REPORTING}
|
||||||
},
|
},
|
||||||
'delete-inbound-sms': {
|
'delete-inbound-sms': {
|
||||||
'task': 'delete-inbound-sms',
|
'task': 'delete-inbound-sms',
|
||||||
'schedule': crontab(hour=1, minute=40),
|
'schedule': crontab(hour=5, minute=40),
|
||||||
'options': {'queue': QueueNames.PERIODIC}
|
'options': {'queue': QueueNames.PERIODIC}
|
||||||
},
|
},
|
||||||
'save-daily-notification-processing-time': {
|
'save-daily-notification-processing-time': {
|
||||||
'task': 'save-daily-notification-processing-time',
|
'task': 'save-daily-notification-processing-time',
|
||||||
'schedule': crontab(hour=2, minute=0),
|
'schedule': crontab(hour=6, minute=0),
|
||||||
'options': {'queue': QueueNames.PERIODIC}
|
'options': {'queue': QueueNames.PERIODIC}
|
||||||
},
|
},
|
||||||
'cleanup-unfinished-jobs': {
|
'cleanup-unfinished-jobs': {
|
||||||
'task': 'cleanup-unfinished-jobs',
|
'task': 'cleanup-unfinished-jobs',
|
||||||
'schedule': crontab(hour=0, minute=5),
|
'schedule': crontab(hour=4, minute=5),
|
||||||
'options': {'queue': QueueNames.PERIODIC}
|
'options': {'queue': QueueNames.PERIODIC}
|
||||||
},
|
},
|
||||||
'remove_sms_email_jobs': {
|
'remove_sms_email_jobs': {
|
||||||
'task': 'remove_sms_email_jobs',
|
'task': 'remove_sms_email_jobs',
|
||||||
'schedule': crontab(hour=4, minute=0),
|
'schedule': crontab(hour=8, minute=0),
|
||||||
'options': {'queue': QueueNames.PERIODIC},
|
'options': {'queue': QueueNames.PERIODIC},
|
||||||
},
|
},
|
||||||
'check-for-services-with-high-failure-rates-or-sending-to-tv-numbers': {
|
'check-for-services-with-high-failure-rates-or-sending-to-tv-numbers': {
|
||||||
'task': 'check-for-services-with-high-failure-rates-or-sending-to-tv-numbers',
|
'task': 'check-for-services-with-high-failure-rates-or-sending-to-tv-numbers',
|
||||||
'schedule': crontab(day_of_week='mon-fri', hour=10, minute=30),
|
'schedule': crontab(day_of_week='mon-fri', hour=14, minute=30),
|
||||||
'options': {'queue': QueueNames.PERIODIC}
|
'options': {'queue': QueueNames.PERIODIC}
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user