Skip to main content

Timeout

Sets a maximum execution time for a block or group of blocks. If exceeded, the flow is redirected to the "timeout" branch.

Parameters

ParameterTypeRequiredVariableDescription
timeoutMsdynamic valueYesYesMaximum execution duration in milliseconds. Can be a literal or a variable. (min 1000, max 3600000)
onTimeoutchoice (error, default, skip)NoNoAction when timeout is exceeded: raise an error, use a default value, or skip the block. (Default: "error")
defaultValuedynamic valueNoYesFallback value used if the timeout is exceeded and onTimeout is default.
timeoutVariabletextNoNoVariable 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.