diff --git a/config/cms/docker_run_production.py b/config/cms/docker_run_production.py index 96524b87..f4243860 100644 --- a/config/cms/docker_run_production.py +++ b/config/cms/docker_run_production.py @@ -37,6 +37,8 @@ ###################################### CELERY ################################ +CELERY_ALWAYS_EAGER = config("CELERY_ALWAYS_EAGER", default=False, formatter=bool) + # Don't use a connection pool, since connections are dropped by ELB. BROKER_POOL_LIMIT = 0 BROKER_CONNECTION_TIMEOUT = 1 diff --git a/config/lms/docker_run_production.py b/config/lms/docker_run_production.py index 112219ae..3377c8ec 100644 --- a/config/lms/docker_run_production.py +++ b/config/lms/docker_run_production.py @@ -46,6 +46,8 @@ ###################################### CELERY ################################ +CELERY_ALWAYS_EAGER = config("CELERY_ALWAYS_EAGER", default=False, formatter=bool) + # Don't use a connection pool, since connections are dropped by ELB. BROKER_POOL_LIMIT = 0 BROKER_CONNECTION_TIMEOUT = 1