fix(publish): extend state lease wait to eight minutes#731
Merged
Conversation
brokemac79
marked this pull request as draft
July 21, 2026 00:55
brokemac79
force-pushed
the
codex/csw-049-temp-publish-timeout-480
branch
from
July 21, 2026 01:06
06822e5 to
2799353
Compare
brokemac79
marked this pull request as ready for review
July 21, 2026 01:07
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Problem
PR #730 repairs the separate apply-lane starvation by setting a 900-second override on three rare apply jobs. It intentionally leaves normal review/event result publishers on the 180-second fallback. Post-#729 production evidence showed those normal publishers still dominated by 180-second
StatePublishContentionErrorfailures.Implementation
After rebasing onto #730's merge commit, this changes only its fallback from
3 * 60_000to8 * 60_000. TheCLAWSWEEPER_STATE_LEASE_ACQUIRE_TIMEOUT_MSoverride, three900000apply-lane settings, 30-minute cap, publication capacity, lease TTL, polling, queue state, retries, gates, and dispatch behavior remain unchanged.Validation
origin/main: one line insrc/repair/git-publish.ts900000No additional local test, Codex review, or ClawSweeper review was run at the maintainer's explicit request.
Risk and rollout
Normal contending publishers may remain leased for up to eight minutes before returning to the durable queue. Apply-lane publishers retain #730's 15-minute override. Queue depth, useful GitHub delivery, retry amplification, and state-contention failures remain under active monitoring.
Related: #729, #730, and CSW-049.