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

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 --execute
mix continuum.partitions.drop_old --repo MyApp.Repo --execute

The task is a dry run by default. Pass --execute to drop eligible partitions. A partition is eligible only when it is before the current UTC month and it contains no events for runs whose retention_until is NULL or still in the future.