From 6413e8a08c491a8708af7ebb0fee071f6aa9d022 Mon Sep 17 00:00:00 2001 From: Ben Thorner Date: Mon, 22 Nov 2021 12:43:11 +0000 Subject: [PATCH] Change timeout-notifications to run every hour There's no logical constraint that prevents this: - ft_billing is unaffected by the status updates - ft_notification_status will still be computed using the updated statuses for the past day. Running the task more frequently should limit the maximum number of notifications it's likely to process. --- app/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/config.py b/app/config.py index 177e78113..b36a5bffd 100644 --- a/app/config.py +++ b/app/config.py @@ -251,7 +251,7 @@ class Config(object): # app/celery/nightly_tasks.py 'timeout-sending-notifications': { 'task': 'timeout-sending-notifications', - 'schedule': crontab(hour=0, minute=5), + 'schedule': crontab(minute=5), 'options': {'queue': QueueNames.PERIODIC} }, 'create-nightly-billing': {