Skip to content

Conversation

@Akkikens
Copy link
Contributor

@Akkikens Akkikens commented Nov 22, 2025

Increased workflow time and early exit if less than 30 days found

Asana Task

Processing all workflows takes longer than the previous 5-minute limit.
Increase timeout to 15 minutes to accommodate processing multiple workflows
with up to 300 runs each.
- Reduce runs fetched per workflow from 300 to 100
- Stop fetching early when hitting runs older than max-age-days
  (since runs are sorted newest first, we can break early)

This significantly speeds up processing when workflows have many
old cancelled runs, as we no longer fetch runs we'll just filter out.
Increase timeout from 15 to 30 minutes to handle the initial cleanup
of the 30-day backlog of cancelled runs. The timeout is a safety limit -
the workflow can complete early once the backlog is processed.
Copy link
Contributor

@dominik3141 dominik3141 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As discussed.

@Akkikens Akkikens enabled auto-merge November 22, 2025 06:28
@Akkikens Akkikens added this pull request to the merge queue Nov 22, 2025
Merged via the queue into main with commit b3028e4 Nov 22, 2025
13 checks passed
@Akkikens Akkikens deleted the akshay/increase-cleanup-cancelled-jon-workflow branch November 22, 2025 06:46
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.

3 participants