Many things can go wrong in a serverless environment. If your API does not
respond with a success status code (2XX), we retry the request to ensure every
message will be delivered.The maximum number of retries depends on your current plan. By default, we retry
the maximum amount of times, but you can set it lower by sending the
Upstash-Retries header:
QStash adds the Upstash-Retried header to requests sent to your API. This
indicates how many times the request has been retried.
Copy
Ask AI
Upstash-Retried: 0 // This is the first attemptUpstash-Retried: 1 // This request has been sent once before and now is the second attemptUpstash-Retried: 2 // This request has been sent twice before and now is the third attempt