Limits and errors
These defaults bound a run and its descendants. A shorter caller deadline also limits child execution. Concurrency limits queue work; they do not increase execution capacity.
Execution and data
| Limit | Value |
|---|---|
| Nesting depth | 10 |
| Children per run / simultaneously active children | 1,000 / 100 |
| Nodes per run tree | 10,000 |
| Concurrent runs per owner / definition | 1,000 / 100 |
| Action / sandbox action timeout | 5 min / 6 h |
| Script wall-clock timeout | 30 min |
| Workflow default / maximum timeout | 24 h / 30 days |
| Maximum create-run wait | 60 s |
| Payload soft threshold / hard limit | 256 KiB / 1 MiB |
| Call payload / checkpoint inline threshold | 32 KiB / 256 KiB |
| Task executions per run, including loops and retries | 4,000 |
| Durable execution step budget per run | 9,000 |
| Branches per fork / nested concurrent effects | 10 / 25 |
| Idempotency retention | 24 h |
| Run log retention | 30 days |
| Records per page | 100 |
| Label count / key length / value length | 50 / 40 / 500 characters |
| Description length | 1,000 characters |
| SSE heartbeat interval | 20 s |
The payload soft threshold is not the rejection boundary. The hard limit is 1 MiB, measured as encoded UTF-8 JSON bytes. Inline thresholds determine storage handling; they do not permit oversized script output.
Script runtime
| Limit | Value |
|---|---|
| CPU time | At most 30 seconds, further bounded by the remaining deadline |
| Platform calls per script | 1,000, including logs and progress |
| Concurrent platform calls | 20 |
| One log message | 4,096 UTF-8 bytes; longer messages are truncated |
| Call preview | 512 characters |
| Script error detail | 1,000 characters |
| User stack frames retained | Up to 5 |
Script output must be JSON-serializable. Failed output encoding faults the run. Scripts have no checkpoints or transactional rollback. See Write a script for tested error messages and fixes.
Triggers
| Limit | Value |
|---|---|
| Enabled triggers per owner | 100 |
| Minimum every interval | 1 minute |
| cron precision | 5 fields, one minute |
| One-shot at window | Now through one year from now |
| Default catchup window | 300 seconds |
| Future occurrences in a preview | Up to 5 |
| Consecutive firing failures before pause | 5 |
| Consecutive firing failures before automatic pause | 5 |
| Webhook body | 1 MiB |
| webhook-id deduplication | 24 hours |
| Firing history | 30 days |
Wall-clock, CPU and memory
Three resources are limited on different bases, and fail differently:
| Resource | Basis | Applies to | When exceeded |
|---|---|---|---|
| Script limit 30 min | Wall-clock: elapsed time from start to end, including time spent waiting for call() to return | Script runs; a shorter caller deadline_seconds wins | timeout / TIMEOUT; the detail names which limit fired, its value, the elapsed time and how many call()s completed |
| Action 5 min, sandbox action 6 h | Wall-clock | One Action call; also bounded by the run deadline, whichever is smaller | timeout / TIMEOUT; the detail says whether it was the Action, the sandbox action or the run deadline |
| Script CPU 30 s | CPU: only time the script executes code, waiting on call() is not counted; the smaller of 30 seconds and the remaining deadline | Script isolate | The run fails; the detail gives the CPU limit in milliseconds |
| Script memory | 128 MB per isolate (Workers isolate), fixed by the runtime and not configurable | Scripts | The run fails |
| Sandbox CPU and memory | 2 vCPU / 8192 MiB; sandbox.run cannot choose a size | Commands run by a sandbox action | The system kills the command, or it exceeds the command timeout |
A script that makes 40 serial call()s usually hits the wall-clock limit first: every wait counts toward the 30 minutes but not toward the 30 seconds of CPU.
Choosing where work runs
| Kind of work | Put it in | Limit |
|---|---|---|
| One short typed call | Action | 5 min |
| Glue and orchestration of a few calls | Script | 30 min wall-clock, 30 s CPU, at most 1,000 platform calls |
| Long flows, many steps, waits, retries, durable progress | Workflow | 24 h default, 30 days maximum |
| Heavy CPU or memory, native tools, Python libraries, one long job | Sandbox action (sandbox.run) | 6 h |
| Batch work beyond one run | Split into child runs and process in parallel | 1,000 children per run, 100 active, depth 10 |
Hit a limit? Do this
| Symptom | Do this |
|---|---|
Script TIMEOUT | Read the detail: limit kind, elapsed time, call() count. Replace one serial call() per item with one call per batch, or move the loop into a workflow for, fork (at most 10 branches) or child runs (fan-out up to 1,000) |
| Many items | Process a batch per call. Parallelize with fork or child runs inside the branch, fan-out and active-children limits above. Do not loop serially in one script |
| Result too large (over the stdout cap or the payload limits) | Do not pass large results through stdout or inline payloads. Have the command write a file, list its path in outputs of sandbox.run, and pass only the file ID. When stdout is truncated, a marker line ends the text and truncated is true; do not JSON.parse it |
| Heavy CPU or memory (large PDFs, images, data frames) | Run it in a sandbox action, not in the script |
| Waiting for a person or an external event | Wait or listen in a workflow; do not write a polling script |
stdout and stderr of a sandbox action each keep at most 1 MiB; the rest is cut and a marker line with the original byte count is appended. outputs saves the listed sandbox paths as managed files when the command exits 0, and the result gives each file_id.
What happens when a limit is exceeded
| Limit | When exceeded |
|---|---|
| Script / Action / sandbox action / run deadline | timeout / TIMEOUT |
| Payload hard limit 1 MiB | validation / PAYLOAD_TOO_LARGE |
| 1,000 platform calls per script | QUOTA_EXCEEDED |
| Nesting depth 10 | The run fails, titled “运行树深度超限” (run tree too deep) |
| 1,000 children per run | The run fails, titled “子运行数量超限” (too many children) |
| 10,000 nodes per run tree | The run fails, titled “运行树规模超限” (run tree too large) |
| 100 simultaneously active children | Queued, no error |
| Run budget (4,000 task executions / 9,000 steps) | The run fails, titled “运行预算超限” (run budget exceeded) |
| Sandbox stdout / stderr 1 MiB each | No error: truncated, truncated: true, marker line appended |
Find the right error
An HTTP error rejects the request. A faulted run records an execution error in error, even when retrieving that run returns HTTP 200. Keep the run ID and X-Request-Id when investigating.
- Create-run errors: input, target resolution, idempotency and quota failures.
- Publication errors: stale drafts, version conflicts and invalid definitions.
- Trigger errors and schedule errors.
- Webhook errors: body size, input and unavailable URLs.
- Authentication and common errors.
For a concrete schedule failure, INTERVAL_TOO_SHORT reports every must be at least one minute; use PT1M or longer. Do not retry the unchanged invalid schedule.