Skip to main content

Install

NPM

Get QStash token

Follow the instructions here to get your QStash token and signing keys.

Usage

RetryConfig

You can configure the retry policy of the client by passing the configuration to the client constructor. Note: This is for sending the request to QStash, not for the retry policy of QStash. The default number of attempts is 6 and the default backoff function is (retry_count) => (Math.exp(retry_count) * 50). You can also pass in false to disable retrying.

Telemetry

This sdk sends anonymous telemetry headers to help us improve your experience. We collect the following:
  • SDK version
  • Platform (Cloudflare, AWS or Vercel)
  • Runtime version (node@18.x)
You can opt out by setting the UPSTASH_DISABLE_TELEMETRY environment variable to any truthy value. Or setting enableTelemetry: false in the client options.