From 65b150fcfecedae9ca0d1117643530ad16ca9e2b Mon Sep 17 00:00:00 2001 From: "Nikita P. Shupeyko" Date: Sat, 9 Jun 2018 15:12:28 +0300 Subject: [PATCH] CELERY_EAGER_PROPAGATES = CELERY_TASK_ALWAYS_EAGER Addresses https://github.com/pydanny/cookiecutter-django/pull/1446/files#r167238808 --- {{cookiecutter.project_slug}}/config/settings/local.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/{{cookiecutter.project_slug}}/config/settings/local.py b/{{cookiecutter.project_slug}}/config/settings/local.py index 08ba29c89..75202ffa7 100644 --- a/{{cookiecutter.project_slug}}/config/settings/local.py +++ b/{{cookiecutter.project_slug}}/config/settings/local.py @@ -76,8 +76,10 @@ INSTALLED_APPS += ['django_extensions'] # noqa F405 # Celery # ------------------------------------------------------------------------------ -# http://docs.celeryproject.org/en/latest/userguide/configuration.html#std:setting-task_always_eager +# http://docs.celeryproject.org/en/latest/userguide/configuration.html#task-always-eager CELERY_TASK_ALWAYS_EAGER = True +# http://docs.celeryproject.org/en/latest/userguide/configuration.html#task-eager-propagates +CELERY_EAGER_PROPAGATES = CELERY_TASK_ALWAYS_EAGER {%- endif %} # Your stuff...