We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent da80f12 commit cbf55cbCopy full SHA for cbf55cb
main.py
@@ -28,12 +28,8 @@
28
if workers < 1:
29
logger.warning(f"Invalid UVICORN_WORKERS value '{UVICORN_WORKERS}', defaulting to 1.")
30
workers = 1
31
-try:
+elif workers > 1:
32
require_nats_if_multiworker(workers)
33
-except RuntimeError as e:
34
- logger.info("multiworker NATS is not properly configured, defaulting to single worker.")
35
- logger.debug(str(e))
36
- workers = 1
37
38
39
app = create_app(role="panel")
0 commit comments