Workflow limits
Learn about the limits applied to workflows.
Retool imposes certain limits on workflow runs and workflow block runs.
Workflow run limits
A workflow run is a complete execution of a workflow through a trigger (e.g. classic app, schedule, webhook, Retool Event) or by manually running the workflow in the workflow IDE.
Timeout
Retool limits the length of time a workflow run can remain in execution before it is automatically terminated.
For asynchronous workflow runs, the timeout is 30 hours. For asynchronous workflows with User Task or Wait blocks, the timeout is unlimited. Individual Wait blocks are limited to a maximum of 60 days.
For synchronous workflows runs, the timeout is 15 minutes up to executing the first webhook Response block. The remainder of the workflow follows the asynchronous timeout.
Memory
- Cloud
- Self-hosted
A workflow run can use up to 2.5GB in memory.
Memory limits are not enforced by default. To enable enforcement, set WORKFLOW_MONITOR_PROCESS_ENABLED to true on the code-executor container. When enabled, the memory limit defaults to 2,500 MB, configurable via WORKFLOW_MEMORY_LIMIT_MBS.
You can also set organization-level defaults and per-workflow overrides via the Retool API. Workflow-level settings take priority over organization-level settings, which take priority over the environment variable defaults. Refer to Configure code executor resource limits for details.
Logs
- Cloud
- Self-hosted
A workflow run has no limits on log generation or storage.
A workflow run can generate and store a maximum of 10MB of logs, after which logs will be truncated.