Skip to content

Commit cc5a4e4

Browse files
committed
fix: add GDAL_HTTP_MAX_RETRY to workflows and retry loop to Quarto render step
1 parent 6268b0c commit cc5a4e4

2 files changed

Lines changed: 17 additions & 1 deletion

File tree

.github/workflows/pr.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
jobs:
88
build-check:
99
runs-on: ubuntu-latest
10+
env:
11+
GDAL_HTTP_MAX_RETRY: 5
12+
GDAL_HTTP_RETRY_DELAY: 2
1013
steps:
1114
- name: Check out repository
1215
uses: actions/checkout@v4
@@ -34,4 +37,13 @@ jobs:
3437
python3 -m pip install jupyter jupyter-cache
3538
3639
- name: Build Quarto Project
37-
run: quarto render
40+
run: |
41+
# Retry Quarto rendering up to 3 times to handle transient 504 redirect errors
42+
for i in {1..3}; do
43+
if quarto render; then
44+
exit 0
45+
fi
46+
echo "Quarto render failed (attempt $i/3), retrying in 10 seconds..."
47+
sleep 10
48+
done
49+
exit 1

.github/workflows/publish.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,12 @@ jobs:
1010
runs-on: ubuntu-latest
1111
permissions:
1212
contents: write
13+
env:
14+
GDAL_HTTP_MAX_RETRY: 5
15+
GDAL_HTTP_RETRY_DELAY: 2
1316
steps:
1417
- name: Check out repository
18+
1519
uses: actions/checkout@v4
1620

1721
- name: Set up Quarto

0 commit comments

Comments
 (0)