Compare commits

..

No commits in common. "main" and "v2.3.20" have entirely different histories.

View File

@ -536,18 +536,12 @@ if __name__ == "__main__":
log_level="info" log_level="info"
) )
else: else:
api_workers_raw = os.getenv("API_WORKERS", "1").strip()
try:
api_workers = max(1, int(api_workers_raw))
except ValueError:
api_workers = 1
uvicorn.run( uvicorn.run(
"main:app", "main:app",
host="0.0.0.0", host="0.0.0.0",
port=8000, port=8000,
reload=False, reload=False,
workers=api_workers, workers=2,
timeout_keep_alive=65, timeout_keep_alive=65,
access_log=True, access_log=True,
log_level="info" log_level="info"