Create a schedule to send messages periodically
http://
or https://
)*/5 * * * *
Timezones are also supported. You can specify timezone together with cron expression
as follows:Example: CRON_TZ=America/New_York 0 4 * * *
Content-Type
header along, as this will help
your destination API to understand the content of the message.Set this to whatever data you are sending through QStash, if your message is json, then use application/json
.
Some frameworks like Next.js will not parse your body correctly if the content type is not correct.For example application/json
, application/xml
, application/octet-stream
,
text/plain
Max HTTP Connection Timeout
on the pricing page for default values.1 + retries
Leave this empty to use the default value, (free tier: 3, paid tier: 5)The default backoff duration in seconds is calculated as follows: n
is the number of
times the task has been retried.min(86400, e ** (2 * n))
You can use the Upstash-Retry-Delay
header to customize the delay between retry attempts.retried
(current retry attempt count starting from 0).Supported functions:
pow
, sqrt
, abs
, exp
, floor
, ceil
, round
, min
, max
Examples:1000
- Fixed 1 second delay1000 * (1 + retried)
- Linear backoffpow(2, retried) * 1000
- Exponential backoffmax(1000, pow(2, retried) * 100)
- Exponential with minimum 1s delayUpstash-Forward-
. We will
strip efix and them to the destination API.example: "Upstash-Forward-My-Header: my-value" -> "My-Header: my-value"http://
or https://
)api/llm
destination, specifying a callback is required.Upstash-Callback-
prefix; you can set the timeout duration, number of retries, delay to apply or more for the callback request.See the Configuring Callbacks section to learn more.Upstash-Callback
header to define a callback url,
you can specify the headers sent along with the callback request using
the Upstash-Callback-Forward-*
header.To include a header in the callback request, prefix the header name with
Upstash-Callback-Forward-
. We will strip this prefix and forward the header to the callback destination..example: "Upstash-Callback-Forward-My-Header: my-value" -> "My-Header: my-value"http://
or https://
)Upstash-Failure-Callback-
prefix; you can set the timeout duration, number of retries, delay to apply or more for the failure callback request.See the Configuring Callbacks section to learn more.Upstash-Failure-Callback
header to define a callback url
when the delivery fails, you can specify the headers sent along with the failure
callback request using the Upstash-Failure-Callback-Forward-*
header.To include a header in the callback request, add Upstash-Failure-Callback-Forward-
prefix to the header name.
We will strip this prefix and forward the header to the callback destination.example: "Upstash-Failure-Callback-Forward-My-Header: my-value" -> "My-Header: my-value"10s
. Available durations are s
(seconds), m
(minutes), h
(hours), d
(days).example: ”50s” | “3m” | “10h” | “1d”