Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Retention

Execution data (every node’s output for every run) is the largest thing Tappet stores. Retention keeps it bounded.

Execution pruning

VariableDefaultMeaning
TAPPET_EXECUTIONS_TTL14dExecutions that finished longer ago than this are deleted.
TAPPET_EXECUTIONS_MAX_COUNTunsetIf set, only the newest N finished executions are kept, in addition to the TTL.

The pruning job runs periodically (in HA, on the leader only). It deletes finished executions and their node runs in batches, so it never locks the database for long. Executions that are running, queued or waiting are never pruned, however old.

Saving less in the first place

Workflow settings decide whether run data is saved at all:

SettingEffect
saveDataSuccessExecution: noneSuccessful executions keep only their summary (status, timing), not node data. Good for high-volume workflows.
saveDataErrorExecution: allKeep full data for failures, which is what you need for debugging.
saveManualExecutions: falseDo not keep editor test runs.

A common production setup: save errors in full, save successes as summaries only, and keep a TTL of a few days.

Blob garbage collection

Large payloads and files in the blob store are reference-counted by execution. When pruning deletes an execution, it decrements the references of its blobs; blobs that reach zero are deleted from the store. Because blobs are content-addressed, a file shared by many executions is stored once and removed when the last one is pruned.

With S3, deletion happens through the API; if bucket versioning is enabled for backups, add a lifecycle rule that expires non-current versions.

Database size

  • SQLite: deleted rows leave free pages that SQLite reuses. To return space to the file system after a large cleanup, stop Tappet and run sqlite3 tappet.db 'VACUUM', or produce a compacted backup with VACUUM INTO and restore it.
  • Postgres: autovacuum reclaims space for reuse. After a large retention change, a one-time VACUUM (ANALYZE) of the run-data table helps; pg_repack reclaims disk space online.

What is not pruned

  • Workflows and their versions (delete workflows explicitly).
  • Credentials.
  • The audit log (export and truncate it according to your own policy).
  • Workflow static data (cursors and trigger state).