class EngineWatchdogJob
Detects engines stuck in “starting” or “draining” for longer than the configured timeouts and marks them failed so the operator can act.
Constants
- DRAIN_STUCK_AFTER
- START_STUCK_AFTER
-
The retry path (SuperviseEngineStartJob#handle_start_failure) re-enqueues supervision up to MAX_START_ATTEMPTS times WITHOUT renewing status_changed_at (it only bumps start_attempts). Each attempt gets its own READY_TIMEOUT, so the legitimate start window spans ALL attempts — a single-attempt window would let the watchdog fail a start that is still legitimately retrying.
Public Instance Methods
Source
# File app/jobs/engine_watchdog_job.rb, line 14 def perform check_stuck("starting", START_STUCK_AFTER, "engine start timed out (watchdog)") check_stuck("draining", DRAIN_STUCK_AFTER, "engine drain timed out (watchdog)") end