Skip to Content

List Concurrency Limits

Required accessQueues: readread:queuesAny key with this access, from API keys
GET
/api/v1/concurrency-limits

List the environment's declared concurrency limits (anonymous inline limits appear under their derived task/<task-id> names), with each limit's bounds and its live running and queued counts. Results are ordered by the underlying row name, so named limits sort before task/-derived inline limits.

Authorization

secretKey
headerAuthorizationBearer <token>

Use a named environment API key. It starts with tr_dev_sk_, tr_prod_sk_, tr_stg_sk_, etc.

Create a named API key in the API Keys section of your Trigger.dev project dashboard. Choose the narrowest access preset that supports your integration.

Our TypeScript SDK will default to using the value of the TRIGGER_SECRET_KEY environment variable if it is set. If you are using the SDK in a different environment, you can set the key using the configure function.

import { configure } from "@trigger.dev/sdk";configure({ accessToken: "tr_dev_sk_1234" });

Query Parameters

page?integer
Range1 <= value
Default1
perPage?integer
Range1 <= value <= 100
Default25

Response Body

Concurrency limits retrieved successfully

application/json
  1. response
data?array<>
pagination?
Example Request
import { concurrencyLimits } from "@trigger.dev/sdk";const limits = await concurrencyLimits.list({ page: 1, perPage: 20 });
Example Response
{  "data": [    {      "id": "climit_abcdef123456",      "name": "openai",      "perKey": {        "current": null,        "base": null,        "override": null,        "overriddenAt": null      },      "total": {        "current": 25,        "base": 25,        "override": null,        "overriddenAt": null      },      "running": 14,      "queued": 100,      "paused": false    }  ],  "pagination": {    "currentPage": 0,    "totalPages": 0,    "count": 0  }}

Was this page helpful?

Last updated

Edit on GitHub