Skip to content

Commit 52c7273

Browse files
ask-bonk[bot]opencode-agent[bot]elithrar
authored
Add centralised wall time limits table (#28124)
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com> Co-authored-by: elithrar <elithrar@users.noreply.github.com>
1 parent 573f946 commit 52c7273

5 files changed

Lines changed: 29 additions & 0 deletions

File tree

src/content/docs/durable-objects/platform/limits.mdx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,3 +72,6 @@ For Durable Object classes with [SQLite storage](/durable-objects/api/sqlite-sto
7272
## Frequently Asked Questions
7373

7474
<Render file="do-faq-limits" product="durable-objects" />
75+
76+
<Render file="wall-time-limits" product="workers" />
77+

src/content/docs/queues/platform/limits.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,3 +61,5 @@ By default, the maximum CPU time per consumer Worker invocation is set to 30 sec
6161
</WranglerConfig>
6262

6363
To learn more about CPU time and limits, [review the Workers documentation](/workers/platform/limits/#cpu-time).
64+
65+
<Render file="wall-time-limits" product="workers" />

src/content/docs/workers/platform/limits.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -395,6 +395,10 @@ Bundled plan Workers have no duration limits for [Cron Triggers](/workers/config
395395

396396
---
397397

398+
<Render file="wall-time-limits" product="workers" />
399+
400+
---
401+
398402
## Related resources
399403

400404
- [KV limits](/kv/platform/limits/)

src/content/docs/workflows/reference/limits.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,3 +164,5 @@ By default, the maximum number of subrequests per Workflow instance is 10,000 on
164164
Workers on the free plan remain limited to 50 external subrequests and 1,000 subrequests to Cloudflare services per invocation.
165165

166166
To learn more about subrequest limits, [review the Workers documentation](/workers/platform/limits/#subrequests).
167+
168+
<Render file="wall-time-limits" product="workers" />
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
{}
3+
---
4+
5+
## Wall time limits by invocation type
6+
7+
Wall time (also called wall-clock time) is the total elapsed time from the start to end of an invocation, including time spent waiting on network requests, I/O, and other asynchronous operations. This is distinct from [CPU time](/workers/platform/limits/#cpu-time), which only measures time the CPU spends actively executing your code.
8+
9+
The following table summarizes the wall time limits for different types of Worker invocations across the developer platform:
10+
11+
| Invocation type | Wall time limit | Details |
12+
| ------------------------------------------------------------------ | --------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
13+
| Incoming HTTP request | Unlimited | No hard limit while the client remains connected. When the client disconnects, tasks are canceled unless you call [`waitUntil()`](/workers/runtime-apis/handlers/fetch/) to extend execution by up to 30 seconds. |
14+
| [Cron Triggers](/workers/configuration/cron-triggers/) | 15 minutes | Scheduled Workers have a maximum wall time of 15 minutes per invocation. |
15+
| [Queue consumers](/queues/configuration/javascript-apis/#consumer) | 15 minutes | Each consumer invocation has a maximum wall time of 15 minutes. |
16+
| [Durable Object alarm handlers](/durable-objects/api/alarms/) | 15 minutes | Alarm handler invocations have a maximum wall time of 15 minutes. |
17+
| [Durable Objects](/durable-objects/) (RPC / HTTP) | Unlimited | No hard limit while the caller stays connected to the Durable Object. |
18+
| [Workflows](/workflows/) (per step) | Unlimited | Each step can run for an unlimited wall time. Individual steps are subject to the configured [CPU time limit](/workers/platform/limits/#cpu-time). |

0 commit comments

Comments
 (0)