mix continuum.partitions.drop_old (continuum v0.6.2)

Copy Markdown View Source

Drops old continuum_events partitions whose rows all belong to expired runs.

mix continuum.partitions.drop_old
mix continuum.partitions.drop_old --older-than 180d --execute
mix continuum.partitions.drop_old --repo MyApp.Repo --older-than 180d --execute

The task is a dry run by default. Pass --execute to drop eligible partitions. --older-than Nd defaults to 180 days. A partition is eligible only when its upper bound is before that cutoff and the current UTC month, and it contains no events for runs whose retention_until is NULL or still in the future.