Dev: a reload waits at most five seconds for open connections

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0138N7k5PT4dcR1iEqXaaQ9k
This commit is contained in:
Melvin Strobl
2026-10-16 20:46:42 +02:00
co-authored by Claude Opus 5.5
parent 62c0b915f3
commit 50e6e22da4
+7 -3
View File
@@ -95,9 +95,11 @@ services:
context: .. context: ..
dockerfile: backend/Dockerfile dockerfile: backend/Dockerfile
# uvicorn itself, because `fastapi dev` cannot turn per-message deflate # uvicorn itself, because `fastapi dev` cannot turn per-message deflate
# off, which `fluksio serve` does for the media frames. Watching the worker # off, which `fluksio serve` does for the media frames. A reload gives
# too makes a worker edit restart the engine, which respawns the local # open connections five seconds: a device's socket that never finishes
# worker pool with the new code. # closing held the old process, and with it the reload, for good. Watching
# the worker too makes a worker edit restart the engine, which respawns the
# local worker pool with the new code.
command: command:
- uvicorn - uvicorn
- fluksio.main:app - fluksio.main:app
@@ -108,6 +110,8 @@ services:
- "8000" - "8000"
- --ws-per-message-deflate - --ws-per-message-deflate
- "false" - "false"
- --timeout-graceful-shutdown
- "5"
- --reload-dir - --reload-dir
- /app/backend - /app/backend
- --reload-dir - --reload-dir