Skip to content

Commit 0cf2048

Browse files
committed
Time out workflows after 45 minutes
GitHub's default timeout is 6 hours. Recently some of my GitHub Actions jobs have started randomly stalling for that long, which is inconvenient because it ties up a chunk of my runner quota. It apepars to be very rare for a job to recover after stalling. It's better to time out quicker and retry on a different runner.
1 parent 462a5ea commit 0cf2048

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ jobs:
1616
fail-fast: false
1717
matrix:
1818
rust: [nightly, beta, stable]
19+
timeout-minutes: 45
1920
steps:
2021
- uses: actions/checkout@v3
2122
- uses: dtolnay/rust-toolchain@master
@@ -28,6 +29,7 @@ jobs:
2829
name: Outdated
2930
runs-on: ubuntu-latest
3031
if: github.event_name != 'pull_request'
32+
timeout-minutes: 45
3133
steps:
3234
- uses: actions/checkout@v3
3335
- uses: dtolnay/install@cargo-outdated

0 commit comments

Comments
 (0)