Skip to content

Commit

Permalink
Merge pull request #4484 from systeminit/fix/toolbox-listcommandinvoc…
Browse files Browse the repository at this point in the history
…ations-rate-limit

chore/toolbox-ssm-adjustments
  • Loading branch information
johnrwatson authored Sep 4, 2024
2 parents 2d71162 + b336527 commit 0052483
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion component/toolbox/scripts/ssm-scripts/si-service-state
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ mainSteps:
wait
docker-compose -f /run/app/docker-compose.yaml --profile $SI_SERVICE up --wait

wget https://artifacts.systeminit.com/{{ Service }}/${SI_VERSION}/omnibus/linux/$(arch)/{{ Service }}-${SI_VERSION}-omnibus-linux-$(arch).tar.gz -O - | tar -xzf - -C /
wget --no-verbose https://artifacts.systeminit.com/{{ Service }}/${SI_VERSION}/omnibus/linux/$(arch)/{{ Service }}-${SI_VERSION}-omnibus-linux-$(arch).tar.gz -O - | tar -xzf - -C /
METADATA=$(sudo find / -wholename '/etc/nix-omnibus/{{ Service }}/**/metadata.json' | tail -n 1 | xargs cat | jq)
COMMIT=$(echo $METADATA | jq -r '.commit')
RUNNING_VERSION=$(echo $METADATA | jq -r '.version')
Expand Down
5 changes: 3 additions & 2 deletions component/toolbox/scripts/supporting-funcs/ssm-funcs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,12 @@ start_and_track_ssm_session() {
fi

command_id=$(echo "$output" | jq -r '.Command.CommandId')
echo "Info: tracking SSM execution ID: $command_id"

# Poll for command status with a timeout of 60 seconds
timeout=60
timeout=180
elapsed=0
interval=1
interval=5

while [ $elapsed -lt $timeout ]; do
status=$(check_ssm_command_status)
Expand Down

0 comments on commit 0052483

Please sign in to comment.