# Limits

> The ceilings and fixed behaviors a workflow runs under — 100 steps per run, retries only in the nodes that implement them, timeouts, request body sizes, scheduling intervals and when changes to a workflow take effect.

Source: https://docs.sommatic.ai/en/workflows/limits/ (updated 2026-11-26)

Design within these limits and your workflows behave the same in testing and in production.

## At a glance

| Limit                                | Value                                                                 |
| ------------------------------------ | --------------------------------------------------------------------- |
| Steps per run                        | 100. Above that, the run fails with `Max step ceiling reached (100)`. |
| Engine retries                       | None. Only the nodes listed below retry.                              |
| `io.http` attempts                   | At most 5.                                                            |
| Node timeout (**Timeout (ms)**)      | 300000 ms by default, honored by long-running operators.              |
| `workflow.chain` wait in `sync` mode | `timeout_ms`, 30000 ms by default, without signs of progress.         |
| Webhook request body                 | 5 MB.                                                                 |
| Chained call body                    | 5 MB.                                                                 |
| Scheduler check                      | Every 10 seconds.                                                     |
| Mailbox polling                      | `polling_interval`, 60 seconds by default.                            |

## 100 steps per run

The engine counts every node it runs, including the nodes that run once per item after
[`flow.split`](https://docs.sommatic.ai/en/nodes/flow.split.md) and every branch of a fan-out. When a run needs more than 100 steps, it stops
and ends `failed`. The ceiling protects you from loops in the graph.

If a workflow legitimately needs more steps, split it: process batches in a sub-workflow with
[`workflow.chain`](https://docs.sommatic.ai/en/nodes/workflow.chain.md), where each sub-workflow run has its own count.

## Retries

The engine never retries a node. These nodes retry inside their own execution:

| Node                                                                                                          | Behavior                                                                                                                           |
| ------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- |
| [`io.http`](https://docs.sommatic.ai/en/nodes/io.http.md)                                                     | Retries `429`, `5xx` and network failures (timeouts, refused or reset connections). Never retries other `4xx`. At most 5 attempts. |
| [`integrations.microsoft.azure.blob`](https://docs.sommatic.ai/en/nodes/integrations.microsoft.azure.blob.md) | Honors **Retry On Fail**, **Max Retries** and **Wait Between Retries (ms)**.                                                       |
| [`integrations.mongodb.operation`](https://docs.sommatic.ai/en/nodes/integrations.mongodb.operation.md)       | Honors **Retry On Fail**, **Max Retries** and **Wait Between Retries (ms)**.                                                       |
| [`ai.classify.triage`](https://docs.sommatic.ai/en/nodes/ai.classify.triage.md)                               | Honors **Retry On Fail**, **Max Retries** and **Wait Between Retries (ms)**.                                                       |

Every other node shows the same settings in its **Settings** tab and ignores them. **Continue On Fail** has no effect
on any node: connect the `error` port to continue after a failure. The node pages in the [catalog](https://docs.sommatic.ai/en/nodes.md) say
whether a node honors retries.

> **Note: The execution field is not $execution**
>
> Retry settings are stored in the node configuration under `execution`. That field has nothing to do with the
> `$execution` variable you read in expressions.

## Timeouts

- **Timeout (ms)** in a node's **Settings** tab (300000 by default) limits operators that can run for a long time,
  such as document extraction and inline code.
- A **synchronous webhook call** waits until the run ends. For runs that take minutes, call with
  `execution_mode=async` and follow progress over SSE (see [Webhooks](https://docs.sommatic.ai/en/workflows/webhooks.md)).
- A **synchronous `workflow.chain`** leaves through `error` when the target run goes longer than `timeout_ms` without
  signs of progress.

## Request sizes

Webhook calls and chained calls accept bodies up to 5 MB. Send large files by reference (a URL or a storage key) and
let a node fetch them.

## Schedules

- The scheduler looks for due triggers every 10 seconds, so a run can start a few seconds after it is due.
- Only active workflows with a published version run on a schedule.
- The cron expression is read as an interval counted from the last run, not as a time of day. See
  [Triggers](https://docs.sommatic.ai/en/workflows/triggers.md).

## When changes take effect

- **Draft changes** take effect on the next test run, as soon as you save.
- **Published versions** take effect on the next production run, as soon as you publish.
- **A run in progress** keeps the graph it started with.
- **Schedule and mailbox settings** (`cron_expr`, `polling_interval`) are read from the saved draft, so a new interval
  applies as soon as you save it, while the scheduled run still uses the published graph.

## Next steps

- [Gotchas](https://docs.sommatic.ai/en/workflows/gotchas.md): The surprises that break workflows most often.
- [Errors](https://docs.sommatic.ai/en/workflows/errors.md): Error ports, failed runs and recovery.
- [Nodes](https://docs.sommatic.ai/en/nodes.md): Which nodes honor retries, node by node.
