Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions src/content/docs/workers/wrangler/configuration.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -416,13 +416,16 @@
## Limits

You can impose limits on your Worker's behavior at runtime. Limits are only supported for the [Standard Usage Model](/workers/platform/pricing/#example-pricing-standard-usage-model).
Limits are only enforced when deployed to Cloudflare's network, not in local development. The CPU limit
can be set to a maximum of 300,000 milliseconds (5 minutes).
Limits are only enforced when deployed to Cloudflare's network, not in local development.

<Render file="isolate-cpu-flexibility" product="workers" /> <br />

- `cpu_ms` <Type text="number" /> <MetaInfo text="optional" />
- The maximum CPU time allowed per invocation, in milliseconds.
- The limit can be set to a maximum of 300,000 milliseconds (5 minutes).

- `subrequests` <Type text="number" /> <MetaInfo text="optional" />
- The maximum allowed number of fetch requests per invocation.

Example:

Expand All @@ -431,6 +434,7 @@
```toml title="wrangler.toml"
[limits]
cpu_ms = 100
subrequests = 100
```

</WranglerConfig>
Expand Down Expand Up @@ -1083,7 +1087,7 @@
- The memory to be used by your container, in MiB. Defaults to `256`.

- `disk_mb` <Type text="number" /> <MetaInfo text="optional" />
- The disk to be used by your container, in MB. Defaults to `2000` (2GB).

Check warning on line 1090 in src/content/docs/workers/wrangler/configuration.mdx

View workflow job for this annotation

GitHub Actions / Semgrep

semgrep.style-guide-potential-date-year

Potential year found. Documentation should strive to represent universal truth, not something time-bound. (add [skip style guide checks] to commit message to skip)

<WranglerConfig>

Expand Down