Discover Packages
github.com/mubtasim/tasklane
internal
pruner
package
Version:
v1.0.1
Opens a new window with list of versions in this module.
Published: Nov 20, 2026
License: Apache-2.0
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package pruner runs the background loop that deletes old finished jobs:
completed and cancelled ones after the retention period, dead ones after
the (longer) dead retention. Every server runs it; the store's SKIP LOCKED
makes that safe.
Run prunes once immediately and then every Interval until ctx is
cancelled. Errors are logged, never fatal: the next tick tries again.
Config sets the loop's period, both retention periods and the batch size.
Non-positive values take the defaults.
Store is the part of store.Store the pruner needs.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.