Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Unstrange the logic. Fixes #2733

[email protected]0ba8bfab182b
diff --git a/saleor/settings.py b/saleor/settings.py
index 834500eb05..319799bb02 100644
--- a/saleor/settings.py
+++ b/saleor/settings.py
@@ -480,7 +480,7 @@ SOCIAL_AUTH_REDIRECT_IS_HTTPS = True
# CELERY SETTINGS
CELERY_BROKER_URL = os.environ.get(
'CELERY_BROKER_URL', os.environ.get('CLOUDAMQP_URL')) or ''
-CELERY_TASK_ALWAYS_EAGER = False if CELERY_BROKER_URL else True
+CELERY_TASK_ALWAYS_EAGER = not CELERY_BROKER_URL
CELERY_ACCEPT_CONTENT = ['json']
CELERY_TASK_SERIALIZER = 'json'
CELERY_RESULT_SERIALIZER = 'json'