Skip to content

fix: Increase stale workflow operations limit to clear backlog#17719

Merged
sfanahata merged 1 commit into
masterfrom
fix/stale-operations-limit
May 11, 2026
Merged

fix: Increase stale workflow operations limit to clear backlog#17719
sfanahata merged 1 commit into
masterfrom
fix/stale-operations-limit

Conversation

@sfanahata
Copy link
Copy Markdown
Contributor

Summary

  • Increase operations-per-run from 100 to 500

Problem

The stale PR workflow was running successfully but not closing PRs because it was hitting the operations limit before it could process the full backlog. With 400+ open issues/PRs, 100 operations per run only allows marking ~30-40 PRs as stale, leaving no capacity to close the ones already marked stale from 7+ days ago.

Solution

Increase to 500 operations, which provides enough headroom to:

  1. Process all eligible (non-draft, non-exempt) PRs
  2. Both mark new stale PRs AND close previously-staled ones in the same run
  3. Leave API capacity for other scheduled workflows (lock.yml runs at 3:13 AM)

Once the backlog clears, daily processing load will drop significantly.

operations-per-run of 100 is too low for a repo with 400+ open items.
The action exhausts its budget marking PRs stale before it can close
previously-staled ones. 500 provides enough headroom while leaving
API capacity for other scheduled workflows.
@vercel
Copy link
Copy Markdown

vercel Bot commented May 11, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
develop-docs Ready Ready Preview, Comment May 11, 2026 8:44pm
sentry-docs Ready Ready Preview, Comment May 11, 2026 8:44pm

Request Review

@sfanahata sfanahata merged commit a9d67c4 into master May 11, 2026
20 checks passed
@sfanahata sfanahata deleted the fix/stale-operations-limit branch May 11, 2026 21:08
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.

2 participants