Skip to main content
You can monitor wait list size of your flow control key’s from the console FlowControl tab.
Also you can get the same info using the REST API.

Response Fields

Each flow control key returned by the API includes the following metrics:
FieldDescription
flowControlKeyThe flow control key name
waitListSizeNumber of messages currently waiting in the queue
parallelismMaxConfigured maximum concurrent messages (if set)
parallelismCountNumber of messages currently running in parallel
rateMaxConfigured maximum messages per rate period (if set)
rateCountNumber of messages dispatched in the current rate period
ratePeriodRate period length in seconds
ratePeriodStartUnix timestamp when the current rate period started

Resetting a Flow Control Key

If you need to immediately release queued messages (for example, after a downstream service recovers from an outage), you can reset the flow control counters via the REST API or SDK:
import { Client } from "@upstash/workflow";

const client = new Client({ token: "<QSTASH_TOKEN>" });

await client.flowControl.reset("your-flow-control-key");