GenDurable.GC (gen_durable v0.1.7)

Copy Markdown View Source

Periodically deletes terminal (done/failed) instances older than the retention window (spec ยง8) โ€” the engine's built-in pruner.

Each sweep removes at most :gc_batch rows (Queries.gc/3); if it fills the batch, more remain, so it re-sweeps immediately to drain a backlog rather than waiting a full interval. A terminal child whose parent is still mid-join is spared โ€” see Queries.gc/3.

Disable by passing gc_interval: nil to the engine; the GC process is then not started and terminal rows accumulate until pruned externally.

Summary

Functions

Returns a specification to start this module under a supervisor.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

start_link(opts)