mirror of
https://github.com/rommapp/romm.git
synced 2026-11-28 17:48:31 +01:00
Gunicorn writes /tmp/gunicorn.pid only once its arbiter starts. On a slow cold start the watchdog found no pid file and started another gunicorn every 5s without stopping the earlier ones, until the host ran out of memory. Record $! at launch, as the RQ workers already do. Cold starts were slow because the image ships no bytecode while setting PYTHONDONTWRITEBYTECODE=1, so every process compiled every module from source. Compile the venv during uv sync and /backend at build time. Fixes #5246 Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>