Skip to content

Commit

Permalink
fix timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
james03160927 committed Feb 2, 2025
1 parent ce43711 commit 5e55998
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion node-pack-extract/cloudbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ steps:
args:
- -c
- gcloud auth print-identity-token --audiences="$_REGISTRY_BACKEND_URL" | tee /workspace/token
waitFor: ["-"]

- name: "badouralix/curl-jq"
entrypoint: "sh"
Expand Down
2 changes: 0 additions & 2 deletions node-pack-extract/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,10 @@ echo -n >"$OUTPUTFILE"
until cat "$OUTPUTFILE" | grep ''; do
sleep 1

echo "$SECONDS $TIMEOUT"
if ((SECONDS >= TIMEOUT)); then
jq -n '{success: false, reason: "timeout"}' | tee "$OUTPUTFILE"
break
fi
echo "here"

curl -sf localhost:8188/object_info |
jq -c '
Expand Down

0 comments on commit 5e55998

Please sign in to comment.