Bug
GetWorkflowInstances in backend/redis/diagnostics.go returns 0 results when used with go-redis v9.19.0+, breaking the workflow dashboard.
Root cause
go-redis v9.19.0 (#3751) removed the automatic Start/Stop swap for ZRANGE ... BYSCORE REV. Redis requires the range high → low when REV is set (Start = upper bound, Stop = lower bound). The previous argument order worked silently due to the library reordering them; it no longer does.
// diagnostics.go — wrong order
rb.rdb.ZRangeArgs(ctx, redis.ZRangeArgs{
Stop: stop, // "+inf" / cursor — actually the upper bound
Start: "-inf",
ByScore: true,
Rev: true,
})
Redis receives ZRANGE key -inf +inf BYSCORE REV which always returns an empty set.
Fix
Swap Start and Stop — PR to follow.
Bug
GetWorkflowInstancesinbackend/redis/diagnostics.goreturns 0 results when used with go-redis v9.19.0+, breaking the workflow dashboard.Root cause
go-redis v9.19.0 (#3751) removed the automatic
Start/Stopswap forZRANGE ... BYSCORE REV. Redis requires the range high → low whenREVis set (Start= upper bound,Stop= lower bound). The previous argument order worked silently due to the library reordering them; it no longer does.Redis receives
ZRANGE key -inf +inf BYSCORE REVwhich always returns an empty set.Fix
Swap
StartandStop— PR to follow.