Skip to content

Commit e2ab69f

Browse files
author
Matt Pryor
authored
Ensure jobs have enough time to complete after acquiring CI lock (azimuth-cloud#131)
1 parent 893144f commit e2ab69f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/actions/setup/action.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,10 @@ runs:
141141
secret-key: ${{ steps.s3-lock-config.outputs.secret-key }}
142142
bucket: ${{ steps.s3-lock-config.outputs.bucket }}
143143
action: acquire
144+
# GitHub terminates jobs after 6 hours
145+
# We don't want jobs to acquire the lock then get timed out before they can finish
146+
# So wait a maximum of 3 hours to acquire the lock, leaving 3 hours for other tasks in the job
147+
timeout-minutes: 180
144148
if: ${{ steps.s3-lock-config.outputs.host != '' }}
145149

146150
- name: Allocate floating IP for ingress

0 commit comments

Comments
 (0)