2
0
mirror of synced 2025-01-12 17:44:08 +00:00

Fix job status check (#115)

* Fix job status check

* Add a delay before get Kubernetes job status
This commit is contained in:
Slava 2024-12-02 17:30:48 +02:00 committed by GitHub
parent 4ae17c5b1d
commit ac8f01c922
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -103,6 +103,7 @@ jobs:
- name: Set workflow status from job status
run: |
sleep 5
job_status=$(kubectl get jobs ${{ env.NAMEPREFIX }} -n ${{ env.NAMESPACE }} -o jsonpath='{.status.conditions[0].type}')
echo "Job status: $job_status"
[[ "${job_status}" != "Complete" ]] && exit 1
if [[ "${job_status}" != "Complete" ]]; then exit 1; fi