Skip to main content

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:

ThingCounts as
Starting a run (canvas or durable function)One run toward your monthly runs
Each activity attemptOne node execution of the run
Activity wall timeRun minutes. Replays do not count
Workflow tasks, signals, timers and the built-in queriesNothing; they are part of the run
Event historiesRun data, kept and deleted with your run data retention settings
Code bundlesCode bundle storage, 1 GiB per workspace by default. Identical code is stored once
Importing a workflow from code, a template or an n8n exportOne workflow toward your workflow limit

Each standalone activity also counts as one run toward your monthly runs.

Run limits​

LimitValue
Events in one run's history10,000 by default
Inline payload in one run's history16 MiB by default
Payloads in one history, including large ones stored separately64 MiB
One payload kept inline256 KiB; larger payloads are stored separately
Start input2 MiB
One signal payload1 MiB
Signals one run accepts2,000
Open activities, pending timers and open child runs2,000 of each
One workflow task10 seconds
Workflow code memory128 MiB per task
Start-to-close of an activity attempt without a timeout set5 minutes
Child run nesting10 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​

LimitValue
Code bundle8 MiB
Source archive, as uploaded32 MiB (64 MiB decompressed)
Project files shown in the builder1 MiB
Template source1 MiB and 64 files

Next steps​