Files
zeekay b526a4011e Wake idle runners when a job has waited a minute
A runner skips PickTask while its queue version equals the latest, so
a bump that failed, or a wait made without one, leaves matching idle
runners asleep until something else bumps.  Seen today: jobs re-queued
by the forge and rows cancelled in the database sat unpicked until a
manual bump.

The wake_runners cron runs every minute and bumps the global version
when a job has been waiting, unclaimed, for over a minute: status
waiting, not a reusable caller, with a runs-on.  The test takes the
version table away while a transaction commits, sees the lost bump
logged, and checks the next tick moves the version.

Claude-Session: https://claude.ai/code/session_015XYKLo5aivJF2MHLneVUYc
2026-11-08 12:32:50 -08:00
..