← Back
Cloudflare
Cloudflare Workers lifts 1000-subrequest limit to 10,000 by default; configurable to 10 million

Higher Limits for Production Workloads

Cloudflare Workers has removed the longstanding 1000-subrequest limit per invocation, a constraint that frequently blocked complex applications and long-running tasks. This change directly addresses pain points for developers running open websockets on Durable Objects or extended Workflows that naturally exceed the previous ceiling.

New Default and Configuration Options

  • Paid plans now default to 10,000 subrequests per invocation
  • Limits can be increased up to 10 million via Wrangler configuration
  • Free plan users remain constrained: 50 external subrequests + 1,000 Cloudflare service requests per invocation
  • Both wrangler.jsonc (JSON) and wrangler.toml (TOML) configuration formats are supported

Configuration and Safety Controls

You can set subrequest limits in your Wrangler configuration file using either format:

[limits]
subrequests = 50_000

To protect against runaway code or unexpected costs, developers can also enforce stricter limits:

[limits]
subrequests = 10
cpu_ms = 1_000

This allows fine-grained control over resource consumption across different environments or use cases. Refer to the Wrangler configuration documentation and subrequest limits guide for additional details.