mirror of
https://github.com/mjl-/mox.git
synced 2024-12-27 08:53:48 +03:00
mention webhook retry intervals in webhook docs
for github issue #31, feedback from cuu508
This commit is contained in:
parent
e702f45d32
commit
962575f21b
2 changed files with 8 additions and 6 deletions
|
@ -56,9 +56,10 @@ per account.
|
||||||
|
|
||||||
A webhook is delivered by an HTTP POST with headers "X-Mox-Webhook-ID" (unique
|
A webhook is delivered by an HTTP POST with headers "X-Mox-Webhook-ID" (unique
|
||||||
ID of webhook) and "X-Mox-Webhook-Attempt" (number of delivery attempts,
|
ID of webhook) and "X-Mox-Webhook-Attempt" (number of delivery attempts,
|
||||||
starting at 1), and a JSON body with the webhook data. Webhook delivery
|
starting at 1), and a JSON body with the webhook data. Failing webhook
|
||||||
failures are retried at a schedule similar to message deliveries, until
|
deliveries are retried with backoff, each time doubling the interval between
|
||||||
permanent failure.
|
attempts, at 1m, 2m, 4m, 7.5m, 15m and unwards, until the last attempt after a
|
||||||
|
16h wait period.
|
||||||
|
|
||||||
See [webhook.Outgoing] for the fields in a webhook for outgoing deliveries, and
|
See [webhook.Outgoing] for the fields in a webhook for outgoing deliveries, and
|
||||||
in particular [webhook.OutgoingEvent] for the types of events.
|
in particular [webhook.OutgoingEvent] for the types of events.
|
||||||
|
|
|
@ -66,9 +66,10 @@ per account.
|
||||||
|
|
||||||
A webhook is delivered by an HTTP POST with headers "X-Mox-Webhook-ID" (unique
|
A webhook is delivered by an HTTP POST with headers "X-Mox-Webhook-ID" (unique
|
||||||
ID of webhook) and "X-Mox-Webhook-Attempt" (number of delivery attempts,
|
ID of webhook) and "X-Mox-Webhook-Attempt" (number of delivery attempts,
|
||||||
starting at 1), and a JSON body with the webhook data. Webhook delivery
|
starting at 1), and a JSON body with the webhook data. Failing webhook
|
||||||
failures are retried at a schedule similar to message deliveries, until
|
deliveries are retried with backoff, each time doubling the interval between
|
||||||
permanent failure.
|
attempts, at 1m, 2m, 4m, 7.5m, 15m and unwards, until the last attempt after a
|
||||||
|
16h wait period.
|
||||||
|
|
||||||
See [webhook.Outgoing] for the fields in a webhook for outgoing deliveries, and
|
See [webhook.Outgoing] for the fields in a webhook for outgoing deliveries, and
|
||||||
in particular [webhook.OutgoingEvent] for the types of events.
|
in particular [webhook.OutgoingEvent] for the types of events.
|
||||||
|
|
Loading…
Reference in a new issue