fix: add harder timeouts to uvicorn.run
CI / lint (push) Successful in 40s
Docs build and publish / docker (push) Successful in 23s
CI / test (3.11) (push) Canceled after 48s
CI / test (3.12) (push) Canceled after 46s
CI / test (3.13) (push) Canceled after 43s
CI / test-with-beamline-plugins (pxi_bec) (push) Canceled after 41s
CI / test-with-beamline-plugins (pxii_bec) (push) Canceled after 38s
CI / test-with-beamline-plugins (pxiii_bec) (push) Canceled after 36s
CI / test-with-coverage (push) Canceled after 33s
CI / coverage-analysis (push) Canceled after 0s
Build and Publish / release (push) Successful in 34s

This commit was merged in pull request #170.
This commit is contained in:
David Perl
2026-08-25 14:36:06 +02:00
committed by perl_d
parent 1ac4908053
commit 2b85428ebe
+3 -1
View File
@@ -133,8 +133,8 @@ async def lifespan(application: FastAPI):
yield # ── application serves requests here ──
# Shutdown: add cleanup here if needed
daq.shutdown()
logger.info(f"Worker {os.getpid()} shutting down.")
daq.shutdown()
app = FastAPI(lifespan=lifespan)
@@ -2531,6 +2531,8 @@ def main():
proxy_headers=False,
log_config=get_uvicorn_logging_config(),
timeout_worker_healthcheck=30,
timeout_graceful_shutdown=1,
timeout_keep_alive=30,
)