Skip to content

Commit

Permalink
Add timeouts to lock acquisition
Browse files Browse the repository at this point in the history
  • Loading branch information
mkjpryor committed Mar 22, 2024
1 parent 4bc7123 commit e5fe3ef
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/build_test_images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ jobs:
secret-key: ${{ secrets.S3_SECRET_KEY }}
bucket: ${{ steps.s3-lock-config.outputs.bucket }}
action: acquire
# GitHub terminates jobs after 6 hours
# We don't want jobs to acquire the lock then get timed out before they can finish
# So wait a maximum of 3 hours to acquire the lock, leaving 3 hours for other tasks in the workflow
timeout-minutes: 180
if: ${{ steps.s3-lock-config.outputs.host != '' }}

read_builds:
Expand Down Expand Up @@ -253,6 +257,10 @@ jobs:
generate_tests_caas_test_case_slurm_enabled: false
generate_tests_kubernetes_test_cases_latest_only: false
generate_tests_kubernetes_apps_suite_enabled: false
# GitHub terminates jobs after 6 hours
# We don't want jobs to acquire the lock then get timed out before they can finish
# So wait a maximum of 3 hours to acquire the lock, leaving 3 hours for other tasks in the job
timeout-minutes: 180

- name: Provision Azimuth
uses: stackhpc/azimuth-config/.github/actions/provision@devel
Expand Down

0 comments on commit e5fe3ef

Please sign in to comment.