Skip to content

Commit bc32315

Browse files
committed
refactor: webhook retry count
1 parent a2f9bba commit bc32315

6 files changed

Lines changed: 18 additions & 6 deletions

File tree

en/on-call/integration/webhooks/alert-webhook.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ curl -X POST 'https://example.com/alert/webhook?a=a' \
156156

157157
2. **Will pushes continue after failure?**
158158

159-
Retries for specific network errors, max 2 retries:
159+
Retries for specific network errors, max 1 retries:
160160
- context deadline exceeded (excluding awaiting headers)
161161
- i/o timeout
162162
- eof

en/on-call/integration/webhooks/custom-actions.mdx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,13 @@ When an incident is confirmed to impact production services, trigger external st
254254

255255
- Service needs to return response within 1 second; exceeding 1 second is considered a failure
256256

257+
2. **Will pushes continue after failure?**
257258

258-
2. **Trusted IP whitelist for push source?**
259+
Retries for specific network errors, max 1 retries:
260+
- context deadline exceeded (excluding awaiting headers)
261+
- i/o timeout
262+
- eof
263+
264+
3. **Trusted IP whitelist for push source?**
259265
- {ip_whitelist}
260266
- May be updated in the future, please check regularly

en/on-call/integration/webhooks/incident-webhook.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ curl -X POST 'https://example.com/incident/webhook?a=a' \
197197

198198
2. **Will pushes continue after failure?**
199199

200-
Retries for specific network errors, max 2 retries:
200+
Retries for specific network errors, max 1 retries:
201201
- context deadline exceeded (excluding awaiting headers)
202202
- i/o timeout
203203
- eof

zh/on-call/integration/webhooks/alert-webhook.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ curl -X POST 'https://example.com/alert/webhook?a=a' \
162162

163163
2. **推送失败后是否会持续推送?**
164164

165-
针对特定的网络错误,会进行重试,最多重试2次:
165+
针对特定的网络错误,会进行重试,最多重试1次:
166166
- context deadline exceeded (排除 awaiting headers)
167167
- i/o timeout
168168
- eof

zh/on-call/integration/webhooks/custom-actions.mdx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,13 @@ curl -X POST 'https://example.com/incident/action?a=a' \
260260

261261
- 服务需要在 2 秒内返回响应,超过 2 秒则认为响应失败
262262

263+
2. **推送失败后是否会持续推送?**
263264

264-
2. **推送来源可信 IP 白名单?**
265+
针对特定的网络错误,会进行重试,最多重试1次:
266+
- context deadline exceeded (排除 awaiting headers)
267+
- i/o timeout
268+
- eof
269+
270+
3. **推送来源可信 IP 白名单?**
265271
- {ip_whitelist}
266272
- 未来可能会更新,请定期查验

zh/on-call/integration/webhooks/incident-webhook.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ curl -X POST 'https://example.com/incident/webhook?a=a' \
203203

204204
2. **推送失败后是否会持续推送?**
205205

206-
针对特定的网络错误,会进行重试,最多重试2次:
206+
针对特定的网络错误,会进行重试,最多重试1次:
207207
- context deadline exceeded (排除 awaiting headers)
208208
- i/o timeout
209209
- eof

0 commit comments

Comments
 (0)