Skip to content

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

Pass CELERY_TASK_DEFAULT_QUEUE to celery (#18555)

Łukasz Kostkaba5ce142b4fc
diff --git a/saleor/settings.py b/saleor/settings.py
index a3b83639a5..80e3e9bbd7 100644
--- a/saleor/settings.py
+++ b/saleor/settings.py
@@ -1053,6 +1053,9 @@ executor.SubscriberExecutionContext = PatchedSubscriberExecutionContext # type:
patch_executor()
+# Default queue into which messages will be pushed.
+CELERY_TASK_DEFAULT_QUEUE = os.environ.get("CELERY_TASK_DEFAULT_QUEUE", "celery")
+
# Optional queue names for Celery tasks.
# Set None to route to the default queue, or a string value to use a separate one
#