From 8a49cc215c06adfd4ac46522d84c1397f39058a9 Mon Sep 17 00:00:00 2001 From: David van Buiten Date: Thu, 6 Jul 2023 09:59:18 +0200 Subject: [PATCH] Made setting "CELERY_TASK_ALWAYS_EAGER" configurable and default to False. --- app/main/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/main/settings.py b/app/main/settings.py index 7c7687a..e7be994 100644 --- a/app/main/settings.py +++ b/app/main/settings.py @@ -180,7 +180,7 @@ CELERY_RESULT_BACKEND = 'django-db' CELERY_RESULT_EXTENDED = True CELERY_TASK_RESULT_EXPIRES = 604800 # 7 days in seconds (7*24*60*60) -CELERY_TASK_ALWAYS_EAGER = True +CELERY_TASK_ALWAYS_EAGER = os.getenv('CELERY_TASK_ALWAYS_EAGER', False) # Celery Beat settings