ci: add timeout-minutes to scheduled workflow jobs#6940
Open
kunal-yelgate wants to merge 1 commit into
Open
Conversation
Signed-off-by: kunal_yelgate <kunalyelgatew@gmail.com>
13ab1d9 to
f1d5e32
Compare
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.
What this PR does:
Adds explicit
timeout-minutesto scheduled GitHub Actions workflow jobs that currently don't define one..github/workflows/codeql-analysis.yamlanalyze60.github/workflows/stale.yamlstale15actions/stale, which is typically fastWhy we need it:
Scheduled workflows run without direct user interaction, so a stuck job can occupy a runner until the default GitHub Actions 6-hour timeout is reached. Adding explicit timeouts makes these jobs fail faster when they hang and keeps runner usage bounded.
The repository already uses explicit job timeouts in other workflows:
.github/workflows/build_tool.yaml(timeout-minutes: 15).github/workflows/publish_tool.yaml(timeout-minutes: 30)This change follows the same existing pattern.
Which issue(s) this PR fixes:
Fixes #6902
Does this PR introduce a user-facing change?: