flow.execution.max_iterations | FLOW_MAX_ITERATIONS | 10–10000 | How many nodes one flow run may pass through outside loops before the session fails, and how many nodes one pass through a loop’s body may take before it reaches the loop’s end. It stops a flow that goes round in circles from holding a worker; an automation run counts over all its queue jobs. Steps inside a loop count against the next setting instead. Defaults to 100 |
flow.execution.max_loop_iterations | FLOW_MAX_LOOP_ITERATIONS | 1–3000 | How many times one loop node may run its body before the session fails: in one go in a conversation (a loop that waits for the contact starts counting again with each message), over the whole run — across its queue jobs — in an automation run. A loop with a fixed count above it cannot be published. Defaults to 1000. In a conversation a loop also stops after 30 seconds of work in one go, so it never outlives the queue job. Whatever both settings say, one run never takes more than 10,000 steps in all, so a loop with a long body stops sooner |
flow.call.dedup_ttl_hours | FLOW_CALL_DEDUP_TTL_HOURS | 168–720 | How many hours the call node remembers a successful call, so a step the queue runs again is not sent to the remote system a second time. Defaults to 192 (8 days); keep it above the 7 days Horizon keeps failed jobs, because a step retried from there is recognised until then; a retry from the failed_jobs table after the window sends the call again with the same key |
flow.automation.segment_steps | FLOW_AUTOMATION_SEGMENT_STEPS | 1–1000 | How many nodes an automation run (a flow started by a trigger, not a message) passes through in one queue job before it saves its position and continues in a new job. Defaults to 50 |
flow.automation.segment_seconds | FLOW_AUTOMATION_SEGMENT_SECONDS | 1–30 | How long an automation run executes in one queue job before it continues in a new one, whichever of this and the step count comes first. Defaults to 20; at most 30, so a segment and its slowest node stay inside the 60-second job timeout |
flow.automation.max_run_hours | FLOW_AUTOMATION_MAX_RUN_HOURS | 1–720 | How long an automation run may live, from its start. Defaults to 24. Every minute flow:sweep-overdue-automation-runs fails a run still running or waiting past it — its job was lost, or it sleeps in a delay or waits on a subflow longer than this — together with its subflows, which frees its trigger and lets its flow be deleted. Irreversible: a failed run is not resumed. A change applies only to runs that start afterwards |
flow.automation.recover_after_minutes | FLOW_AUTOMATION_RECOVER_AFTER_MINUTES | 2–240 | How many minutes an automation run may go without a step and without a job before flow:sweep-overdue-automation-runs queues its next step again — its job was lost, or ran out of attempts, or a subflow ended without handing back to its parent. Defaults to 10. A run sleeping in a delay or waiting for an answer is not touched, and a run past its deadline is failed instead. A run that only waits behind a backed-up queue costs one extra job per threshold; raise it when the automation queue is often backed up for longer |
flow.automations.runs_per_trigger_per_minute | FLOW_AUTOMATION_RUNS_PER_TRIGGER_PER_MINUTE | 1–6000 | How many runs one schedule, event, webhook or API trigger may start in a minute before it is paused; a paused trigger starts nothing until someone who can edit the flow and has Manage automations resumes it in the builder. Defaults to 60 |
flow.webhook.per_token_per_minute | FLOW_WEBHOOK_PER_TOKEN_PER_MINUTE | 1–6000 | How many requests one webhook trigger URL accepts in a minute, signed or not, before it answers 429. Defaults to 120 |
flow.webhook.sync_wait_seconds | FLOW_WEBHOOK_SYNC_WAIT_SECONDS | 1–30 | How long a request to a webhook trigger or an API trigger that waits for the flow’s answer is held open; without an answer by then the caller gets 202 and the run goes on. Defaults to 30 |
flow.webhook.sync_waiters_max | FLOW_WEBHOOK_SYNC_WAITERS_MAX | 1–100 | How many such requests, across all tenants, may wait at once; each holds a PHP worker, so keep it well below the PHP-FPM pool. A request over the limit gets 202 at once. Defaults to 5 |
flow.webhook.sync_waiters_per_tenant | FLOW_WEBHOOK_SYNC_WAITERS_PER_TENANT | 1–100 | How many of them one tenant may have waiting at once. Defaults to 2 |
flow.automation_runs.succeeded_retention_days | FLOW_AUTOMATION_SUCCEEDED_RETENTION_DAYS | 0–3650 | How many days a finished automation run that succeeded is kept, with its history and logs, for every tenant; 0 keeps them forever. Defaults to 7. The daily flow:prune-automation-runs deletes older runs, irreversibly; conversation sessions are never pruned |
flow.automation_runs.failed_retention_days | FLOW_AUTOMATION_FAILED_RETENTION_DAYS | 0–3650 | The same for every other finished automation run — failed, expired, cancelled or terminated; 0 keeps them forever. Defaults to 30 |
flow.session_history.retention_days | FLOW_SESSION_HISTORY_RETENTION_DAYS | 0–3650 | How many days the history of a finished conversation session — its node trace and state changes — is kept, for every tenant; 0 keeps it forever. Defaults to 0. The daily flow:prune-session-history deletes the whole history of sessions that finished earlier, irreversibly; the sessions themselves stay, and a session still going, or a subflow whose parent is still going, keeps its history. Automation runs keep their history as long as the run |
flow.versions.keep_last | FLOW_VERSIONS_KEEP_LAST | 0–10000 | How many of the latest published versions of each flow are kept, for every tenant; 0 keeps every version. Defaults to 0; 50 is recommended. The daily flow:prune-versions deletes older versions, irreversibly, but never the active or the latest one, nor one that any session, an inline button sent earlier or a pinned subflow node still uses |
flow.trace.payloads | FLOW_TRACE_PAYLOADS | on / off | Whether the trace of an automation run keeps what each node received and produced (for a call node, the request and the response body), with secrets masked and each row cut to 1 MB. Off, a trace row keeps only the node’s status, exit, duration and error. Conversation traces never keep input or output. Defaults to on; a change applies to nodes that run afterwards |
audit.retention_days | AUDIT_RETENTION_DAYS | 0–3650 | How many days an entry of the activity log is kept, for every tenant; 0 keeps it forever. Defaults to 365. The daily audit:prune deletes older entries |
conversation.retention_days | CONVERSATION_RETENTION_DAYS | 0–3650 | How many days the conversation transcript is kept, for every tenant; 0 keeps it forever. The daily conversations:prune drops whole monthly partitions older than that, so a message lives between that many days and about 31 days longer. Irreversible; threads and media are kept |
api_tokens.default_ttl_days | API_TOKEN_DEFAULT_TTL_DAYS | 1–365 | How many days a new API token lives when its issuer picks no other expiry; never more than the maximum below. Defaults to 90 |
api_tokens.max_ttl_days | API_TOKEN_MAX_TTL_DAYS | 1–365 | The longest expiry an issuer may give an API token. Every token has an expiry. Defaults to 365 |
api_tokens.rotation_grace_hours | API_TOKEN_ROTATION_GRACE_HOURS | 0–168 | How many hours a rotated API token keeps working next to its successor; 0 ends it at once. Defaults to 24 |
api_tokens.per_minute | API_TOKEN_PER_MINUTE | 1–10000 | How many requests one API token may make in a minute before it gets 429. Defaults to 60 |
tenancy.rename.redirect_days | TENANCY_RENAME_REDIRECT_DAYS | 0–365 | How many days the old address of a renamed tenant forwards to the new one; 0 switches forwarding off. Has an effect only with TENANCY_RESOLUTION=host, and is read when a tenant is renamed |