Skip to content

Commit b090a56

Browse files
author
Matt Pryor
committed
Add timeouts to setup tasks
1 parent a019863 commit b090a56

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

.github/workflows/test-full.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ jobs:
3232
target-cloud: ${{ inputs.target-cloud || vars.TARGET_CLOUD }}
3333
install-mode: ha
3434
environment-prefix: ci-ha
35+
# GitHub terminates jobs after 6 hours
36+
# We don't want jobs to acquire the lock then get timed out before they can finish
37+
# So wait a maximum of 3 hours to acquire the lock, leaving 3 hours for other tasks in the job
38+
timeout-minutes: 180
3539

3640
- name: Provision Azimuth
3741
uses: ./.github/actions/provision
@@ -78,6 +82,10 @@ jobs:
7882
target-cloud: ${{ inputs.target-cloud || vars.TARGET_CLOUD }}
7983
install-mode: ha
8084
environment-prefix: ci-upgrade
85+
# GitHub terminates jobs after 6 hours
86+
# We don't want jobs to acquire the lock then get timed out before they can finish
87+
# So wait a maximum of 3 hours to acquire the lock, leaving 3 hours for other tasks in the job
88+
timeout-minutes: 180
8189

8290
- name: Provision Azimuth
8391
uses: ./.actions/.github/actions/provision

.github/workflows/test-singlenode.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,10 @@ jobs:
6969
repository: ${{ github.repository }}
7070
ref: ${{ github.ref }}
7171
target-cloud: ${{ inputs.target-cloud || vars.TARGET_CLOUD }}
72+
# GitHub terminates jobs after 6 hours
73+
# We don't want jobs to acquire the lock then get timed out before they can finish
74+
# So wait a maximum of 3 hours to acquire the lock, leaving 3 hours for other tasks in the job
75+
timeout-minutes: 180
7276

7377
- name: Provision Azimuth
7478
uses: ./.github/actions/provision

0 commit comments

Comments
 (0)