Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Disable task prefetching in Celery (#16488)
Patryk Zawadzki70d6109e61f9
diff --git a/saleor/settings.py b/saleor/settings.pyindex a0ee2ab9da..c2a329fe23 100644--- a/saleor/settings.py+++ b/saleor/settings.py@@ -551,15 +551,16 @@ EXPORT_FILES_TIMEDELTA = timedelta()# CELERY SETTINGS-CELERY_TIMEZONE = TIME_ZONE+CELERY_ACCEPT_CONTENT = ["json"]CELERY_BROKER_URL = (os.environ.get("CELERY_BROKER_URL", os.environ.get("CLOUDAMQP_URL")) or "")+CELERY_RESULT_BACKEND = os.environ.get("CELERY_RESULT_BACKEND", None)+CELERY_RESULT_SERIALIZER = "json"CELERY_TASK_ALWAYS_EAGER = not CELERY_BROKER_URL-CELERY_ACCEPT_CONTENT = ["json"]CELERY_TASK_SERIALIZER = "json"-CELERY_RESULT_SERIALIZER = "json"-CELERY_RESULT_BACKEND = os.environ.get("CELERY_RESULT_BACKEND", None)+CELERY_TIMEZONE = TIME_ZONE+CELERY_WORKER_PREFETCH_MULTIPLIER = 1# Expire orders task settingBEAT_EXPIRE_ORDERS_AFTER_TIMEDELTA = timedelta(