Skip to content

v1.0.19 — don't crash-loop on Redis without BLMOVE

Choose a tag to compare

@adhikjoshi adhikjoshi released this 21 Aug 08:23
· 9 commits to main since this release
a2a7e23

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 BLMOVE once and cache the result. On unknown command, claim tasks with an atomic Lua LPOP+RPUSH polled on a short interval — same atomicity, same FIFO order, only the blocking is emulated.
  • BRPOPLPUSH was deliberately not used: it pops the tail, which turns an rpush-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