Skip to content

Add a cron-style history-pruning policy helper (prune_policy) #94

Description

@usmanimamu17-create

Problem Statement. prune_history(keep_latest) and
prune_history_by_age(min_age_seconds) exist. Operators have no
politics for "prune on Sunday 02:00 UTC". The prune_policy would
embed higher-level retention rules in storage.

Expected Outcome.

  • New struct PrunePolicy storing {keep_latest: u32, max_age_seconds: u64, cron_expr: String}.
  • New functions: set_prune_policy, get_prune_policy, apply_prune_policy.
  • The cron expression is informational; actual cadence is cron-driven externally.

Files: lib.rs, new tests.

Metadata

Metadata

Labels

GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardOfficial Campaign | FWC26Campaign: Official Campaign | FWC26featureImported from ISSUES.mdhistoryImported from ISSUES.mdmaintainabilityImported from ISSUES.md

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions