Limits and quotas
What counts toward your plan
Workflows as code are available on every plan, including Free. They use the quotas you already have:
| Thing | Counts as |
|---|---|
| Starting a run (canvas or durable function) | One run toward your monthly runs |
| Each activity attempt | One node execution of the run |
| Activity wall time | Run minutes. Replays do not count |
| Workflow tasks, signals, timers and the built-in queries | Nothing; they are part of the run |
| Event histories | Run data, kept and deleted with your run data retention settings |
| Code bundles | Code bundle storage, 1 GiB per workspace by default. Identical code is stored once |
| Importing a workflow from code, a template or an n8n export | One workflow toward your workflow limit |
Each standalone activity also counts as one run toward your monthly runs.
Run limits
| Limit | Value |
|---|---|
| Events in one run's history | 10,000 by default |
| Inline payload in one run's history | 16 MiB by default |
| Payloads in one history, including large ones stored separately | 64 MiB |
| One payload kept inline | 256 KiB; larger payloads are stored separately |
| Start input | 2 MiB |
| One signal payload | 1 MiB |
| Signals one run accepts | 2,000 |
| Open activities, pending timers and open child runs | 2,000 of each |
| One workflow task | 10 seconds |
| Workflow code memory | 128 MiB per task |
| Start-to-close of an activity attempt without a timeout set | 5 minutes |
| Child run nesting | 10 levels |
A workflow can raise its own workflow task budget to up to 120 seconds, and your plan can raise the history limits to at most 50,000 events and 50 MiB.
Long-running workflows and continue-as-new
A workflow that loops forever, such as a subscription that renews every month, eventually reaches the history limit. When the history reaches 80 % of the limit, ctx.info.continueAsNewSuggested turns true; at 95 % the SDK throws HistoryLimitExceeded. Call ctx.continueAsNew(nextInput) before then: the run ends and a new run of the same workflow starts with a fresh history and the input you pass.
Code limits
| Limit | Value |
|---|---|
| Code bundle | 8 MiB |
| Source archive, as uploaded | 32 MiB (64 MiB decompressed) |
| Project files shown in the builder | 1 MiB |
| Template source | 1 MiB and 64 files |