pub fn is_eligible(
state: &WorkItemState,
min_age_days: u32,
now_us: i64,
) -> boolExpand description
Check if a work item is eligible for compaction.
An item is eligible if:
- Its lifecycle state is Done or Archived
- It has been in that terminal state for at least
min_age_days - It is not soft-deleted (deleted items are already lightweight)
ยงArguments
stateโ The current CRDT state of the item.min_age_daysโ Minimum days in done/archived before compaction.now_usโ Current wall-clock time in microseconds.