Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
rebelArtists committed Apr 9, 2024
1 parent 2a9d03b commit 4c658d0
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/cdk-superuser-regression-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,15 @@ jobs:
end_minute=$(( $(date +'%M') + bake_time))
while [ $(date +'%M') -lt $end_minute ]; do
STATUS=$(cast rpc zkevm_verifiedBatchNumber)
echo "ZKEVM_VERIFIED_BATCH_NUMBER: $STATUS"
# Attempt to connect to the service
if STATUS=$(cast rpc zkevm_verifiedBatchNumber 2>/dev/null); then
echo "ZKEVM_VERIFIED_BATCH_NUMBER: $STATUS"
else
# If connection fails, wait and retry after some time
echo "Failed to connect, waiting and retrying..."
sleep 10
continue
fi
sleep 60
done

Expand Down

0 comments on commit 4c658d0

Please sign in to comment.