You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(redis-worker): make per-env pop-failure increment idempotent
Multiple workers can race past pickNextEnv into the same env before
skip propagates from the first failing pop. With the prior unguarded
`failed += 1` each racing worker bumped the count, so a single broken
env could contribute up to `concurrency` failures in one tick — drifting
from the documented "one failure per env batch" contract.
Guard the increment on `!skip.has(envId)` so the per-env failure count
is exactly one regardless of race. Tightens the test assertion from
"in [1, concurrency]" to "=== 1".
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
0 commit comments