Upstash-Retries header:
Upstash-Retried Header
QStash adds theUpstash-Retried header to requests sent to your API. This
indicates how many times the request has been retried.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Upstash-Retries header:
curl -XPOST \
-H 'Authorization: Bearer XXX' \
-H "Content-type: application/json" \
-H "Upstash-Retries: 2" \
-d '{ "hello": "world" }' \
'https://qstash.upstash.io/v2/publish/...'
n = how many times this request has been retried
delay = min(86400, e ** (2.5*n)) // in seconds
| n | delay |
|---|---|
| 0 | 1s |
| 1 | 12s |
| 2 | 2m28s |
| 3 | 30m8ss |
| 4 | 6h7m6s |
Upstash-Retried header to requests sent to your API. This
indicates how many times the request has been retried.
Upstash-Retried: 0 // This is the first attempt
Upstash-Retried: 1 // This request has been sent once before and now is the second attempt
Upstash-Retried: 2 // This request has been sent twice before and now is the third attempt
Was this page helpful?