← All ideas
0

Flow: Prune old runs and steps with a retention window per workspace

LaunchedFlowFix

n8n prunes finished executions by default after 14 days or 10,000 executions, never touching waiting runs (https://docs.n8n.io/hosting/scaling/execution-data/); Zapier keeps run history for a plan-based window. Flow never deletes flow_runs, flow_steps or their stored inputs and contexts, which can reach 2 MB input and 8 MB context per run (lib/flow.ts MAX_RUN_INPUT, lib/flow-engine.ts CONTEXT_TOTAL_LIMIT), and rows are only removed when the flow itself is deleted (ON DELETE CASCADE). The UI can only show the last 100 runs anyway (listRuns clamps to 100), so older history is dead weight on Turso and a privacy liability for trigger payloads with personal data. First scope: a pruning pass in the cron tick deleting finished runs older than 30 days (env configurable for self-host), keeping waiting runs. Priority: medium. Effort: S. Compared with Zapier / n8n.

Comments 0

No comments yet.