We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d142866 commit 3985404Copy full SHA for 3985404
deploy.sh
@@ -69,6 +69,13 @@ function pollForSpecificServiceUpdate() {
69
while true; do
70
RESPONSE=$(describeService)
71
DEPLOYMENT=$(echo "$RESPONSE" | jq -r --arg deploymentId "$1" '.services[]?.deployments[] | select(.id==$deploymentId)')
72
+
73
+ if [ -z "$DEPLOYMENT" ]; then
74
+ echo -e "${ORANGE}Deployment with ID $1 was cancelled, missing or replaced by another.";
75
+ echo -e "${ORANGE}Exiting polling loop. Please verify deployment status in the AWS Console."
76
+ exit 0;
77
+ fi
78
79
DESIRED_COUNT=$(echo "$DEPLOYMENT" | jq -r '.desiredCount // 0')
80
RUNNING_COUNT=$(echo "$DEPLOYMENT" | jq -r '.runningCount // 0')
81
PENDING_COUNT=$(echo "$DEPLOYMENT" | jq -r '.pendingCount // 0')
0 commit comments