mirror of
https://github.com/logos-storage/logos-storage-nim.git
synced 2026-05-12 06:19:33 +00:00
avoid sleeping a full 60s to wait for job completion
Instead, wait for a job condition using kubectl wait
This commit is contained in:
parent
abaad73465
commit
4dc2fb9a79
11
.github/workflows/release.yml
vendored
11
.github/workflows/release.yml
vendored
@ -364,12 +364,11 @@ jobs:
|
||||
# kubectl logs may have exited early (API server closed the stream).
|
||||
# Wait for the job to reach a terminal state before checking the result.
|
||||
kubectl wait job/$NAMEPREFIX -n default \
|
||||
--for=condition=complete,failed \
|
||||
--timeout=3300s
|
||||
# Give the Cloud Logging agent time to export the final log burst
|
||||
# (NUnit pass/fail lines written near pod exit) before Terraform
|
||||
# destroy removes the cluster.
|
||||
sleep 60
|
||||
--for=condition=Complete \
|
||||
--timeout=300s \
|
||||
|| kubectl wait job/$NAMEPREFIX -n default \
|
||||
--for=condition=Failed \
|
||||
--timeout=0s
|
||||
job_status=$(kubectl get jobs $NAMEPREFIX -n default \
|
||||
-o jsonpath='{.status.conditions[0].type}')
|
||||
echo "Job status: $job_status"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user