Spaces:
Sleeping
Sleeping
Retry loop now added to the workflow
Browse files
.github/workflows/deploy_to_huggingface.yml
CHANGED
|
@@ -25,4 +25,10 @@ jobs:
|
|
| 25 |
env:
|
| 26 |
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
| 27 |
run: |
|
| 28 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 25 |
env:
|
| 26 |
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
| 27 |
run: |
|
| 28 |
+
# Retry up to 3 times with 30s delay to handle HF rate limits (429)
|
| 29 |
+
for attempt in 1 2 3; do
|
| 30 |
+
echo "Push attempt $attempt..."
|
| 31 |
+
git push --force https://ajmel:$HF_TOKEN@huggingface.co/spaces/ajmel/multi-content-engine main && break
|
| 32 |
+
echo "Attempt $attempt failed. Waiting 30s before retry..."
|
| 33 |
+
sleep 30
|
| 34 |
+
done
|