Skip to content

Commit

Permalink
Wait 10 seconds before running
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosribas committed Dec 4, 2023
1 parent d7019ff commit 66978c5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions postgres/ping_failed_vms.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ set -o allexport
source $PWD/.env
set +o allexport

# this script needs to be run after ping_consumers.sh
sleep 10

ips=( $(psql -X -A -d producer -U docker -t -c "select ip from consumer where status='error'") )

for ip in "${ips[@]}"
Expand Down

0 comments on commit 66978c5

Please sign in to comment.