Skip to content

Commit

Permalink
Merge pull request #35 from d-hayashi/fix/increase-sleep-duration
Browse files Browse the repository at this point in the history
fix: increase sleep duration
  • Loading branch information
d-hayashi authored Apr 25, 2023
2 parents b166dcb + 6911373 commit 67e4e81
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/mutation/sidecar/sidecar.go
Original file line number Diff line number Diff line change
Expand Up @@ -537,10 +537,10 @@ func (s sidecarinjector) mutateObject(obj metav1.Object, objectNamespace string)
"trap 'scancel || exit 0' SIGHUP SIGINT SIGQUIT SIGTERM ; " +
"while true; " +
"do " +
"sleep 1; " +
"sleep 5; " +
"echo \"$jobid\" | egrep -q '^[0-9]+$' || exit 1; " +
"state=$(curl -fs \"${stateURL}&jobid=${jobid}\"); " +
"[[ \"$state\" = \"PENDING\" ]] && continue; " +
"[[ \"$state\" = \"PENDING\" ]] && sleep 10 && continue; " +
"[[ \"$state\" = \"RUNNING\" ]] && break; " +
"[[ \"$state\" = \"CANCELLED\" ]] && exit 1; " +
"done",
Expand Down

0 comments on commit 67e4e81

Please sign in to comment.