Skip to content

Commit 1cf4947

Browse files
committed
refactor: webhook retry count
1 parent 56c4d63 commit 1cf4947

5 files changed

Lines changed: 10 additions & 4 deletions

File tree

flashduty/en/1. On-call/8. Integrations/8.5 Webhooks/8.5.1 Alert webhook.md

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

153153
2. **Will failed pushes continue to be pushed?**
154154

155-
For specific network errors, retries will be attempted up to a maximum of 2 times:
155+
For specific network errors, retries will be attempted up to a maximum of 1 times:
156156
- context deadline exceeded (excluding cases involving "awaiting headers")
157157
- i/o timeout
158158
- eof

flashduty/en/1. On-call/8. Integrations/8.5 Webhooks/8.5.2 Incident webhook.md

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

197197
2. **Will failed pushes continue to be pushed?**
198198

199-
For specific network errors, retries will be attempted up to a maximum of 2 times:
199+
For specific network errors, retries will be attempted up to a maximum of 1 times:
200200
- context deadline exceeded (excluding cases involving "awaiting headers")
201201
- i/o timeout
202202
- eof

flashduty/zh/1. On-call/5. 集成引导/8.5 Webhooks/8.5.1 告警 webhook.md

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

152152
2. **推送失败后是否会持续推送?**
153153

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

flashduty/zh/1. On-call/5. 集成引导/8.5 Webhooks/8.5.2 故障 webhook.md

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. **推送失败后是否会持续推送?**
199199

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

flashduty/zh/1. On-call/5. 集成引导/8.5 Webhooks/8.5.3 自定义操作.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,12 @@ curl -X POST 'https://example.com/incident/action?a=a' \
247247

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

250+
2. **推送失败后是否会持续推送?**
251+
252+
针对特定的网络错误,会进行重试,最多重试1次:
253+
- context deadline exceeded (排除 awaiting headers)
254+
- i/o timeout
255+
- eof
250256

251257
2. **推送来源可信 IP 白名单?**
252258
- {ip_whitelist}

0 commit comments

Comments
 (0)