forked from phoenix/litellm-mirror
remove unused file from root
This commit is contained in:
parent
0e83a68a69
commit
54d8d46a3b
1 changed files with 0 additions and 28 deletions
|
@ -1,28 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
retry_count=0
|
|
||||||
max_retries=3
|
|
||||||
exit_code=1
|
|
||||||
|
|
||||||
until [ $retry_count -ge $max_retries ] || [ $exit_code -eq 0 ]
|
|
||||||
do
|
|
||||||
retry_count=$((retry_count+1))
|
|
||||||
echo "Attempt $retry_count..."
|
|
||||||
|
|
||||||
# Run the Prisma db push command
|
|
||||||
prisma db push --accept-data-loss
|
|
||||||
|
|
||||||
exit_code=$?
|
|
||||||
|
|
||||||
if [ $exit_code -ne 0 ] && [ $retry_count -lt $max_retries ]; then
|
|
||||||
echo "Retrying in 10 seconds..."
|
|
||||||
sleep 10
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
if [ $exit_code -ne 0 ]; then
|
|
||||||
echo "Unable to push database changes after $max_retries retries."
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo "Database push successful!"
|
|
Loading…
Add table
Add a link
Reference in a new issue