Skip to content

Commit

Permalink
fix: add debugging to wait step
Browse files Browse the repository at this point in the history
  • Loading branch information
jta committed Nov 1, 2023
1 parent b99c78d commit e8b9b29
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion integration/scripts/check_firehose
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,14 @@ aws firehose put-record-batch \
--no-cli-pager

CHECK_INTERVAL=${CHECK_INTERVAL:-5}
CHECK_TIMEOUT=${CHECK_TIMEOUT:-60}
CHECK_TIMEOUT=${CHECK_TIMEOUT:-120}

# Wait up to `CHECK_TIMEOUT` seconds for file to appear
# A file can take quite a long time to flush after reconfiguring a firehose in
# particular.
for i in $(seq 0 ${CHECK_INTERVAL} ${CHECK_TIMEOUT}); do
if [ $i -gt 0 ]; then
echo "waiting"
sleep ${CHECK_INTERVAL}
fi
aws s3 ls ${DESTINATION}`date +%Y` --recursive && exit
Expand Down

0 comments on commit e8b9b29

Please sign in to comment.