Skip to content

Commit

Permalink
Wait for job to be complete
Browse files Browse the repository at this point in the history
  • Loading branch information
tschneider-aneo committed Nov 13, 2024
1 parent c93e3c8 commit 20ee6d7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions bench/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ inputs:
description: "A name that is provided as the value for key 'SessionName' for the 'Bench__Options' option"
required: false
default: "cicd"
timeout:
description: "Time in seconds to wait for job to enter 'Complete' status in Kubernetes"
required: false
default: "600"
outputs:
session-name:
description: "Name of the Bench session to help retrieve its id"
Expand All @@ -48,6 +52,7 @@ runs:
working-directory: ${{ inputs.working-directory }}
shell: bash
env:
TIMEOUT: ${{ inputs.timeout }}
KUBECONFIG: ${{ env.kubeconfig || '' }}
ARMONIK_CORE_VERSION: ${{ inputs.armonik-core-version }}
NTASKS: ${{ inputs.ntasks }}
Expand All @@ -60,3 +65,4 @@ runs:
${{ inputs.working-directory }}/tools/ci/bench-job-template.yml |
kubectl apply -f - --validate=ignore
echo "session-name=$SESSION_NAME" >> "$GITHUB_OUTPUT"
kubectl wait --for=condition=Complete' --timeout="${TIMEOUT}s" job/bench-session

0 comments on commit 20ee6d7

Please sign in to comment.