Skip to content

Commit eeb2153

Browse files
authored
fix: script continuing even after retry exhaustion (#59)
1 parent 05102d5 commit eeb2153

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tools/github/hooks/prerun.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,11 @@ while [[ max_parent_retries -gt 0 ]]; do
8080

8181
done
8282

83+
if [[ max_parent_retries -eq 0 ]]; then
84+
echo "All retries exhausted. StartJob API call failed. Exiting..."
85+
exit 1
86+
fi
87+
8388
rm warpbuild_body.json
8489

8590
echo -e "\nPrehook for WarpBuild runner instance '$RUNNER_NAME' completed successfully."

0 commit comments

Comments
 (0)