mirror of
https://github.com/rommapp/romm.git
synced 2026-11-28 17:48:31 +01:00
The watchdog restarts any process whose PID file is missing, and RQ's --pid writes that file only after importing the worker class. Since RomMWorker imports tasks.tasks (and with it config, SQLAlchemy and the auth and socket handlers), reaching that point takes seconds on a cold, bytecode-less image, so on a slower host the watchdog started a fresh pair of workers every 5 s and each one lived on as a duplicate. The init script now writes $! like it does for the cron scheduler and the watchers. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>