Skip to content

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

fix: crash when telemetry is disabled and lifespan is enabled (#19207)

Mikail673fb4a9814e
diff --git a/Dockerfile b/Dockerfile
index 0d5009a206..5ce6d296ec 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -64,4 +64,4 @@ LABEL org.opencontainers.image.title="saleor/saleor" \
org.opencontainers.image.authors="Saleor Commerce (https://saleor.io)" \
org.opencontainers.image.licenses="BSD-3-Clause"
-CMD ["uvicorn", "saleor.asgi:application", "--host=0.0.0.0", "--port=8000", "--workers=2", "--lifespan=on", "--ws=none", "--no-server-header", "--no-access-log", "--timeout-keep-alive=35", "--timeout-graceful-shutdown=30", "--limit-max-requests=10000"]
+CMD ["uvicorn", "saleor.asgi:application", "--host=0.0.0.0", "--port=8000", "--workers=2", "--lifespan=auto", "--ws=none", "--no-server-header", "--no-access-log", "--timeout-keep-alive=35", "--timeout-graceful-shutdown=30", "--limit-max-requests=10000"]