Timeouts and Cancellation
Run time limit
Besides the per-node timeout, a whole run can be limited with Stop a run after in the workflow settings. A run that takes longer is stopped like a cancellation, but marked failed (so the error workflow starts). Every run is also protected by the plan's step and depth limits.
Node timeouts
Every node runs with a time limit. If the node is still running when the limit is reached, Blokkio aborts it and the node fails with:
The node timed out after 900 seconds.
The node log shows the status Timed out. A timeout counts as a normal failure, so the node's retries, error port and Continue on error setting apply.
| Setting | Default | Description |
|---|---|---|
| Timeout (seconds) (per node) | empty | Time limit for this node, in whole seconds (minimum 1). |
| Platform default | 900 (15 minutes) | Used when the node's timeout is empty. |
Setting a node's timeout
- Click the node to open it.
- Go to the Error Handling tab (for steps with a dedicated editor, such as HTTP Request, If / Else or Transform, the Settings tab).
- Enter a value in Timeout (seconds), or leave it empty for the default, then apply your changes.
In the workflow definition (for example in an exported workflow), the timeout is stored as timeoutSeconds on
the node:
{
"name": "Slow report API",
"timeoutSeconds": 120,
"retryOnError": { "enabled": true, "attempts": 2, "delayBetweenAttempts": 10 }
}
Some blocks also have their own, shorter limits, which apply inside the node timeout:
- HTTP Request has its own request timeout parameter.
- Code scripts have a
timeoutSecondsparameter (default 10, max 60). - AI calls in AI Text and AI Agent give up after 5 minutes.
Nodes that pause the run, such as Wait and Approval Gate, don't hold a worker while they wait, so the node timeout doesn't apply to the waiting time. An approval has its own optional timeout.
Cancelling a run
You can cancel any execution that hasn't finished yet (status Running or Awaiting approval).
From the editor: while a test run is in progress, click Stop Run in the header.
From the execution logs: open the row's menu and choose Cancel execution. See execution logs. If the run finished in the meantime, you get an error saying it has already finished.
From the Public API: call the cancel endpoint with an API key that has the executions:cancel scope:
curl -X POST https://api.blokkio.com/api/v1/executions/3f2b9c1e-.../cancel \
-H "Authorization: Bearer $BLOKKIO_API_KEY"
{ "executionId": "3f2b9c1e-...", "status": "cancelling" }
The call returns 202 Accepted. It returns 404 if the execution doesn't exist in the key's project, and
409 (execution-finished) if it has already finished. Poll GET /api/v1/executions/{id} to see the final
status. See the Public API.
Cancelling requires the permission to manage executions (Administrator or Contributor role).
What cancellation does
Cancellation takes effect right away:
- Running nodes are aborted. A node checks for cancellation every couple of seconds while it runs and stops
its work (for example an in-flight HTTP request). Its log entry shows the status Cancelled with the message
Execution was cancelled. - Queued nodes don't start. Nodes that were waiting to run are skipped.
- Waits and approvals are dropped. Pending Wait timers and approvals are cleared, so they never resume.
- Child workflows are cancelled too. Sub-workflows and building blocks started by the run are cancelled in turn, including their own children.
- Pending retries are dropped.
The execution ends with status Cancelled. A cancelled run doesn't start the error workflow; that only runs for failed executions.
Stalled runs
If an execution stops making progress (for example because a worker crashed mid-run), Blokkio detects it through a heartbeat and marks it as failed, so it never stays "Running" forever. Running nodes refresh the heartbeat while they work, so long-running nodes are not mistaken for stalled ones.