Timeout
Sets a maximum execution time for a block or group of blocks. If exceeded, the flow is redirected to the "timeout" branch.
Parameters
| Parameter | Type | Required | Variable | Description |
|---|---|---|---|---|
timeoutMs | dynamic value | Yes | Yes | Maximum execution duration in milliseconds. Can be a literal or a variable. (min 1000, max 3600000) |
onTimeout | choice (error, default, skip) | No | No | Action when timeout is exceeded: raise an error, use a default value, or skip the block. (Default: "error") |
defaultValue | dynamic value | No | Yes | Fallback value used if the timeout is exceeded and onTimeout is default. |
timeoutVariable | text | No | No | Variable name containing the remaining time in milliseconds. |
Parameters marked Variable = Yes accept the
{{blockName.field}}syntax.
Output
Output variable : timeoutResult
{
"result": "...",
"timedOut": false
}
Example
Limit an external call to 30 seconds.
Input :
{}
Output :
{"result": {"data": "completed"}, "timedOut": false}
Tip
{{timeoutResult.timedOut}} is true if the timeout was exceeded. Duration configurable between 1 second and 1 hour.