Files
romm/docker/init_scripts
Edward Salter 7f04b134a8 fix(docker): stop the init watchdog spawning duplicate gunicorns on slow starts (#5250)
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>
2026-10-28 11:16:22 -04:00
..