{
  "slug": "wrangler-configuration-supports-the-subrequests-limit-e18c3f6d7b8b",
  "title": "Wrangler configuration supports the `subrequests` limit",
  "tools": [
    "wrangler"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-02-03T10:16:18.000Z",
  "announced_at": "2026-02-03T10:16:18.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When a Worker invocation needs a request-count cap, set `limits.subrequests` in its Wrangler config. `limits` and `subrequests` are optional; the limit applies at runtime on Cloudflare’s network, not in local development.",
    "examples": [
      "{\n  \"limits\": {\n    \"cpu_ms\": 1000,\n    \"subrequests\": 150\n  }\n}"
    ],
    "gotchas": [
      "Version: 4.62.0",
      "limits: Configures limits imposed on Worker execution at runtime.",
      "limits.subrequests: Maximum subrequests allowed per invocation.",
      "limits.cpu_ms: Maximum CPU time allowed per invocation, in milliseconds.",
      "Prerequisite: Limits are supported for the Standard Usage Model and are enforced only on Cloudflare’s network, not during local development.",
      "Docs conflict: The current configuration docs say the maximum is 50 for free accounts and 10,000,000 for paid accounts. The release-note example uses 150 without specifying a plan; the current docs’ free-account maximum conflicts with using 150 on a free account. https://developers.cloudflare.com/workers/wrangler/configuration/"
    ]
  },
  "why_it_matters": "Limit the number of fetch requests a Worker's invocation can make by configuring the Worker limits.",
  "before": "Before this change, only `cpu_ms` was supported in Wrangler’s `limits` field.",
  "sources": [
    "https://github.com/cloudflare/workers-sdk/releases/tag/wrangler%404.62.0",
    "https://developers.cloudflare.com/workers/wrangler/configuration/"
  ],
  "rank": 0.94026,
  "judge": {
    "publish": true,
    "judge_model": "codex-cli/gpt-6-luna+typesafe/jev-1.13.0",
    "prompt_version": "extract-v7+enrich-v1+judge-v2x3+jev-publish-v1"
  },
  "review_state": "approved",
  "provenance": {
    "run_id": "backfill-20261007",
    "verdict_id": "backfill-20261007:backfill-20261007-d65de8a91933c49d-2:gate",
    "evidence_hash": "663cd4fdec828b309dded201886f18ceef791932c5fdbb453012a18a549f0bc7"
  },
  "review": {
    "draft_hash": "7e0eb6d36a90d487ee6309c6f409ed3d0c3f4046d7508da98a73b3ed39afe6af",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "backfill-20261007:gate",
    "reason": "3 of 3 judge runs approved with p_yes >= 0.9 (mean 0.94 >= 0.9; 2 needed) and Jev gave 0.78 (>= 0.6 needed)."
  }
}
