Skip to content

Commit 9ad0d61

Browse files
committed
feature: add script for retrying deployment
TheGraph has problems with their IPFS pod, deployments mostly fail at the moment, but maybe they go through if I just keep retrying? Trying this idea out with this script.
1 parent f37195e commit 9ad0d61

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/bin/bash
2+
3+
retries=0
4+
while true; do
5+
echo "Attempting to deploy streamr-amoy-testnet..."
6+
npx graph deploy streamr-amoy-testnet -l v1.0.4
7+
8+
if [ $? -eq 0 ]; then
9+
echo "Deployment successful!"
10+
exit 0
11+
else
12+
retries=$((retries + 1))
13+
echo "Deployment has failed $retries times. Retrying in 10 minutes..."
14+
sleep 600
15+
fi
16+
done

0 commit comments

Comments
 (0)