Publish to a URL with a 3 second delay and headers/body#
Publish to a URL group with a 3 second delay and headers/body#
You create URL group on the QStash console or using the URL Group API
Publish a method with a callback URL#
Callbacks are useful for long running functions. Here, QStash will return the response of the publish request to the callback URL.
We also change the method to GET in this use case so QStash will make a GET request to the url. The default
is POST.
Configure the number of retries#
The max number of retries is based on your QStash plan
By default, the delay between retries is calculated using an exponential backoff algorithm. You can customize this using the retry_delay parameter. Check out the retries documentation to learn more about custom retry delay values.
Publish HTML content instead of JSON#
Publish a message with content-based-deduplication#
Publish a message with timeout#
Timeout value in seconds to use when calling a url (See Upstash-Timeout in Publish Message page)
Publish a message with labels#
Labels let you tag a message so you can later identify and filter it in the logs or when cancelling messages.
Labels are also available when batching and when enqueuing to a queue.