Skip to content
中文

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

LimitValue
Nesting depth10
Children per run / simultaneously active children1,000 / 100
Nodes per run tree10,000
Concurrent runs per owner / definition1,000 / 100
Action / sandbox action timeout5 min / 6 h
Script wall-clock timeout30 min
Workflow default / maximum timeout24 h / 30 days
Maximum create-run wait60 s
Payload soft threshold / hard limit256 KiB / 1 MiB
Call payload / checkpoint inline threshold32 KiB / 256 KiB
Task executions per run, including loops and retries4,000
Durable execution step budget per run9,000
Branches per fork / nested concurrent effects10 / 25
Idempotency retention24 h
Run log retention30 days
Records per page100
Label count / key length / value length50 / 40 / 500 characters
Description length1,000 characters
SSE heartbeat interval20 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

LimitValue
CPU timeAt most 30 seconds, further bounded by the remaining deadline
Platform calls per script1,000, including logs and progress
Concurrent platform calls20
One log message4,096 UTF-8 bytes; longer messages are truncated
Call preview512 characters
Script error detail1,000 characters
User stack frames retainedUp 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

LimitValue
Enabled triggers per owner100
Minimum every interval1 minute
cron precision5 fields, one minute
One-shot at windowNow through one year from now
Default catchup window300 seconds
Future occurrences in a previewUp to 5
Consecutive firing failures before pause5
Consecutive firing failures before automatic pause5
Webhook body1 MiB
webhook-id deduplication24 hours
Firing history30 days

Wall-clock, CPU and memory

Three resources are limited on different bases, and fail differently:

ResourceBasisApplies toWhen exceeded
Script limit 30 minWall-clock: elapsed time from start to end, including time spent waiting for call() to returnScript runs; a shorter caller deadline_seconds winstimeout / TIMEOUT; the detail names which limit fired, its value, the elapsed time and how many call()s completed
Action 5 min, sandbox action 6 hWall-clockOne Action call; also bounded by the run deadline, whichever is smallertimeout / TIMEOUT; the detail says whether it was the Action, the sandbox action or the run deadline
Script CPU 30 sCPU: only time the script executes code, waiting on call() is not counted; the smaller of 30 seconds and the remaining deadlineScript isolateThe run fails; the detail gives the CPU limit in milliseconds
Script memory128 MB per isolate (Workers isolate), fixed by the runtime and not configurableScriptsThe run fails
Sandbox CPU and memory2 vCPU / 8192 MiB; sandbox.run cannot choose a sizeCommands run by a sandbox actionThe 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 workPut it inLimit
One short typed callAction5 min
Glue and orchestration of a few callsScript30 min wall-clock, 30 s CPU, at most 1,000 platform calls
Long flows, many steps, waits, retries, durable progressWorkflow24 h default, 30 days maximum
Heavy CPU or memory, native tools, Python libraries, one long jobSandbox action (sandbox.run)6 h
Batch work beyond one runSplit into child runs and process in parallel1,000 children per run, 100 active, depth 10

Hit a limit? Do this

SymptomDo this
Script TIMEOUTRead 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 itemsProcess 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 eventWait 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

LimitWhen exceeded
Script / Action / sandbox action / run deadlinetimeout / TIMEOUT
Payload hard limit 1 MiBvalidation / PAYLOAD_TOO_LARGE
1,000 platform calls per scriptQUOTA_EXCEEDED
Nesting depth 10The run fails, titled “运行树深度超限” (run tree too deep)
1,000 children per runThe run fails, titled “子运行数量超限” (too many children)
10,000 nodes per run treeThe run fails, titled “运行树规模超限” (run tree too large)
100 simultaneously active childrenQueued, no error
Run budget (4,000 task executions / 9,000 steps)The run fails, titled “运行预算超限” (run budget exceeded)
Sandbox stdout / stderr 1 MiB eachNo 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.

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.

API reference → · Cookbook →