Skip to content

Wake quota waits when local capacity changes - #422

Merged
kim-em merged 4 commits into
mainfrom
fix/quota-wakeups
Oct 30, 2026
Merged

kim-em merged 4 commits into
mainfrom
fix/quota-wakeups

Conversation

@kim-em

@kim-em kim-em commented Oct 30, 2026

Copy link
Copy Markdown
Collaborator

A worker waiting on an hour-long usage-endpoint cooldown could remain asleep after a changed credential or another worker's fresh usage observation made capacity available. Subscription quota waits now check existing local records without network requests, credential renewal, or fetch locks, then return through the normal selection and launch path when relevant state changes.

Keep independent, absolute provider retry deadlines, honor identity-scoped HTTP cooldowns, and leave unchanged siblings on their previous refresh schedule. Cache-only misses cannot create outage-based launch permission. Preserve read-only credential mounts, isolated credential mirrors, macOS Keychain scheduling, custom quota commands, and manager reload semantics. Failed observation retains the ordinary retry path.

Validation: 127 local integration scripts pass, including deterministic scheduling regressions and real loop recovery for paced and --ignore-quota workers. Ruff lint/format, ShellCheck, wheel build, and Compose validation pass. The tests count actual mocked HTTP attempts across credential changes, shared cache updates, expired sibling caches, source-scoped cooldown expiry, failed observations, persistent mirror failures, and clock changes.

@kim-em
kim-em marked this pull request as ready for review October 30, 2026 09:29
@kim-em
kim-em merged commit c944218 into main Oct 30, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant