Skip to content
This repository has been archived by the owner on May 9, 2024. It is now read-only.

Commit

Permalink
Add a sleep before checking compose status
Browse files Browse the repository at this point in the history
  • Loading branch information
major committed Sep 14, 2023
1 parent 2ff3af1 commit 76d2590
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion build-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,11 @@ sleep 10

COUNTER=0
while true; do
composer-cli --json compose info "${COMPOSE_ID}" | tee compose_info.json
composer-cli --json compose info "${COMPOSE_ID}" | tee compose_info.json >/dev/null

# Sometimes tee isn't done writing by the time we check the status line below. 🐌
sleep 1

COMPOSE_STATUS=$(jq -r ".[].body.queue_status" compose_info.json)

# Print a status line once per minute.
Expand Down

0 comments on commit 76d2590

Please sign in to comment.