pub fn spawn_cleanup_task(
store: Arc<dyn ArtifactStore>,
retention_days: u64,
interval_hours: u64,
) -> JoinHandle<()>Expand description
Spawns a background task that runs cleanup periodically.
The task runs every interval_hours hours. It is designed to be
cancelled via the tokio cancellation token / task abort.