Repository navigation
v1.0.19 — don't crash-loop on Redis without BLMOVE
Fixes a release-blocking incompatibility in 1.0.17/1.0.18.
BLMOVE needs Redis ≥ 6.2. Every GPU worker container in production is still on Redis 6.0.16, where 1.0.17+ crash-looped at ~30 restarts/second: the worker never registered, the queue never drained, and the process still looked healthy from outside.
Nothing had hit this yet only because every deployed container still ran an older ModelQ — but worker requirements.txt files already pin 1.0.17, so the next rebuild would have.
Changes
- Probe
BLMOVEonce and cache the result. Onunknown command, claim tasks with an atomic LuaLPOP+RPUSHpolled on a short interval — same atomicity, same FIFO order, only the blocking is emulated. BRPOPLPUSHwas deliberately not used: it pops the tail, which turns anrpush-fed queue LIFO.- Any other
ResponseError(LOADING, …) leaves a capable server on the fast path.
Also includes 1.0.18's Task.stage_timings() queue/run split.
PR: #21