File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
velero/schedule/common-service-db Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -153,15 +153,15 @@ data:
153
153
if [[ $job_exists != "fail" ]]; then
154
154
completed=$(oc get job $job_name -n $CSDB_NAMESPACE --no-headers | awk '{print $2}')
155
155
retry_count=20
156
- while [[ $completed != "1/1" ]] && [[ $retry_count > 0 ]]
156
+ while [[ ( $completed != "1/1" && $completed != "Complete" ) ]] && [[ $retry_count > 0 ]]
157
157
do
158
158
info "Wait for job $job_name to complete. Try again in 15s."
159
159
sleep 15
160
160
completed=$(oc get job $job_name -n $CSDB_NAMESPACE --no-headers | awk '{print $2}')
161
- retry_count=$retry_count-1
161
+ retry_count=$(( retry_count-1))
162
162
done
163
163
164
- if [[ $retry_count == 0 ]] && [[ $completed != "1/1" ]]; then
164
+ if [[ $retry_count == 0 ]] && [[ ( $completed != "1/1" && $completed != "Complete" ) ]]; then
165
165
error "Timed out waiting for job $job_name."
166
166
else
167
167
info "Job $job_name completed."
You can’t perform that action at this time.
0 commit comments