Skip to main content

Module retention_trimmer

Module retention_trimmer 

Source
Expand description

Terminal execution retention scanner.

Scans ff:idx:{p:N}:lane:<lane>:terminal for each partition+lane, finding terminal executions whose completed_at score is older than the configured retention period. For each, cascading-deletes all sub-objects: streams, attempt hashes, usage, policy, lease, suspension, waitpoints, signals, and finally the exec core + index entries.

This is a Rust-only scanner — no FCALL needed. Uses direct Valkey commands (ZRANGEBYSCORE + HGET + DEL).

Reference: RFC-010 §6.12

Structs§

RetentionTrimmer