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
{{ message }}
Repository navigation
Commit 21eb0d3
Browse filesBrowse the repository at this point in the historyBrowse files
fix(redis-worker): bound the reconcile sweep cost and write the release note for users
The sweep now scans with a larger COUNT, checks set members in fixed-size
chunks so one script call cannot hold up Redis on a set full of leaked
members, jitters its first run so instances sharing a Redis do not all sweep
at once, and is disabled entirely by a zero interval instead of spinning.
The changeset now leads with the user-visible fix instead of the mechanism.
Copy file name to clipboardExpand all lines: .changeset/fair-queue-concurrency-slot-leak.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,4 +2,4 @@
2
2
"@trigger.dev/redis-worker": patch
3
3
---
4
4
5
-
Fair queue consumers no longer leak the concurrency slots that gate a tenant's throughput, and leaked slots now heal themselves. Slots are freed on the completion, retry, dead-letter, and reclaim paths that previously skipped them, and a failed release never blocks the message's own state transition, so a Redis error can no longer turn into a duplicate execution or a lost retry. A periodic reconcile loop removes any slot whose message is no longer in flight, and a message that still holds its own slot from an earlier failed release is re-admitted instead of being blocked by it.
5
+
Fair queue tenants can no longer get permanently stuck behind leaked concurrency slots. Slots are now freed on every path that finishes a message, a failed release no longer causes a message to run twice or lose its retry, and a background sweep frees any slot that does leak, so a tenant's queues recover on their own instead of needing manual cleanup.
0 commit comments