PhoenixKit.Jobs.PruneWorker (phoenix_kit v2.52.2)

Copy Markdown View Source

Deletes finished job runs older than job_runs_retention_days (default 90, the activity log's default). Daily, by cron (mix phoenix_kit.update adds the entry to existing hosts). An unfinished run is never pruned, however old.

A run's history in the Activity log is pruned by its own retention (activity_retention_days), separately.

Summary

Functions

Deletes the finished runs older than the retention. Returns how many.

How long finished runs are kept, in days.

Functions

prune()

@spec prune() :: non_neg_integer()

Deletes the finished runs older than the retention. Returns how many.

retention_days()

@spec retention_days() :: pos_integer()

How long finished runs are kept, in days.