Skip to content

Commit e81bc32

Browse files
Crave, GitHub Action: limit runtime to 40min. (#3152)
* Limit Github Actions runtime and cleanup always 1. Limit the runtime to 40 minutes 2. At the end, always send a clear kill signal to the job running in Crave --------- Co-authored-by: Houston Putman <[email protected]>
1 parent f772376 commit e81bc32

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/tests-via-crave.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ jobs:
1111
name: Run Solr Tests using Crave.io resources
1212

1313
runs-on: self-hosted
14+
timeout-minutes: 40
1415

1516
steps:
1617
- name: Destroy previous clone
@@ -26,5 +27,10 @@ jobs:
2627
run: |
2728
cd /crave-devspaces/pipeline/runs/${GITHUB_RUN_ID}_${GITHUB_RUN_NUMBER}
2829
crave run --clean
29-
- name: Delete Clone
30-
run: crave clone destroy -y /crave-devspaces/pipeline/runs/${GITHUB_RUN_ID}_${GITHUB_RUN_NUMBER}
30+
- name: Cleanup
31+
if: ${{ always() }}
32+
run: |
33+
pushd /crave-devspaces/pipeline/runs/${GITHUB_RUN_ID}_${GITHUB_RUN_NUMBER}
34+
crave stop --all
35+
popd
36+
crave clone destroy -y /crave-devspaces/pipeline/runs/${GITHUB_RUN_ID}_${GITHUB_RUN_NUMBER}

0 commit comments

Comments
 (0)