Skip to content

Commit a4ae1b6

Browse files
ci(indexnow): bound the submission curl with a timeout and retries
Mirrors the sister repo's review: a slow or flaky api.indexnow.org must not burn the job timeout, and three retries cover a transient error. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SrKzcwZBnref1sWYtdXynu
1 parent 3107757 commit a4ae1b6

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

.github/workflows/indexnow-submit.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,10 @@ jobs:
9292
--rawfile list "$f" \
9393
'{host: $host, key: $key, keyLocation: $loc,
9494
urlList: ($list | split("\n") | map(select(length > 0)))}')
95+
# Bounded: a slow or flaky api.indexnow.org must not burn the job
96+
# timeout; three retries cover a transient error.
9597
code=$(curl -sS -o response.txt -w '%{http_code}' \
98+
--max-time 30 --retry 3 --retry-delay 5 --retry-all-errors \
9699
-X POST "https://api.indexnow.org/indexnow" \
97100
-H "Content-Type: application/json; charset=utf-8" \
98101
--data "$body")

0 commit comments

Comments
 (0)