Rindle.Ops.SweepOrphanedTempFiles (Rindle v0.1.5)

Copy Markdown View Source

Dedicated recursive sweeper for Rindle.tmp/ AV run directories.

This module is the shared service contract for the direct Elixir call, the on-demand Mix task, and the scheduled Oban worker lane.

Summary

Types

report()

@type report() :: %{
  run_dirs_scanned: non_neg_integer(),
  orphan_count: non_neg_integer(),
  run_dirs_deleted: non_neg_integer(),
  errors: non_neg_integer()
}

Functions

perform(job)

@spec perform(Oban.Job.t()) :: :ok

Callback implementation for Oban.Worker.perform/1.

sweep(opts \\ [])

@spec sweep(keyword()) :: report()