Skip to content

ci(stale): bump operations-per-run to 1500 and add manual trigger#27037

Merged
mrpollo merged 1 commit intomainfrom
mrpollo/stale-bump-ops
Apr 10, 2026
Merged

ci(stale): bump operations-per-run to 1500 and add manual trigger#27037
mrpollo merged 1 commit intomainfrom
mrpollo/stale-bump-ops

Conversation

@mrpollo
Copy link
Copy Markdown
Contributor

@mrpollo mrpollo commented Apr 10, 2026

The stale workflow has been hitting its operations-per-run: 250 cap on every daily run, logging No more operations left! Exiting... before it finishes processing the candidate queue. Today's run (24223026205) processed 393 items, marked 39 new stale, but only closed 1 issue before exiting. There are currently 178 items carrying the stale label waiting to be closed, and the backlog is growing faster than the workflow can drain it.

GitHub API headroom is not the constraint. After a full 250-op run the rate-remaining was 14,728/15,000, so 250 ops is about 1.6% of the hourly bucket. Bumping to 1500 uses ~10% and stays well under both the primary and secondary rate limits. The actions/stale maintainers explicitly recommend raising this when the No more operations left warning appears.

Also adds workflow_dispatch so maintainers can trigger the workflow manually from the Actions tab or via gh workflow run stale.yml --repo PX4/PX4-Autopilot, which is useful for draining the backlog and for testing config changes without waiting for the next cron.

Expect the first run after merge to be a catch-up run that closes more items than usual as it works through the accumulated stale-labeled backlog. Daily cadence should stabilize well under the new cap after that.

The stale workflow was hitting its 250 operations-per-run cap every
daily run, causing the "No more operations left! Exiting..." warning
and leaving a growing backlog of stale-labeled items that were never
being closed. GitHub API headroom is plentiful (250 ops uses ~1.6% of
the 15k/hour bucket), so raising to 1500 drains the backlog without
any rate-limit risk.

Also adds workflow_dispatch so maintainers can trigger the workflow
from the Actions tab or via gh workflow run stale.yml.

Signed-off-by: Ramon Roche <mrpollo@gmail.com>
@mrpollo mrpollo merged commit a3ad956 into main Apr 10, 2026
70 checks passed
@mrpollo mrpollo deleted the mrpollo/stale-bump-ops branch April 10, 2026 02:40
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