Skip to content

Commit

Permalink
Fix a bug that the EC2 instance is not terminated if unit tests failed (
Browse files Browse the repository at this point in the history
  • Loading branch information
wanliAlex authored Jan 27, 2025
1 parent 4bb705d commit 68652f4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/unit_test_200gb_CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -279,11 +279,12 @@ jobs:
Stop-Runner:
name: Stop self-hosted EC2 runner
needs:
- Check-Changes # required to start the main job when the runner is ready
- Start-Runner # required to get output from the start-runner job
- Test-Marqo # required to wait when the main job is done
- Check-Changes
runs-on: ubuntu-latest
if: ${{ needs.start-runner.outputs.label }} # Only stop the runner if it was started
if: |
always() && needs.Start-Runner.result == 'success'
steps:
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
Expand Down

0 comments on commit 68652f4

Please sign in to comment.