0.2.76 - Icon Packs
This commit is contained in:
@@ -77,6 +77,20 @@ func (s *Server) RegisterHousekeeping(sched *scheduler.Scheduler) {
|
||||
},
|
||||
})
|
||||
|
||||
sched.Register(scheduler.Task{
|
||||
ID: "ingest-cleanup",
|
||||
Name: "Import queue cleanup",
|
||||
Group: "Housekeeping",
|
||||
Description: fmt.Sprintf(
|
||||
"Removes settled Sonarr and Radarr import records older than %d days. Work still waiting is never removed.",
|
||||
int(store.IngestRetention/(24*time.Hour))),
|
||||
Interval: 24 * time.Hour,
|
||||
Run: func(ctx context.Context) (string, error) {
|
||||
removed, err := s.store.PruneIngests(ctx, store.IngestRetention)
|
||||
return countDetail(removed, "import record"), err
|
||||
},
|
||||
})
|
||||
|
||||
sched.Register(scheduler.Task{
|
||||
ID: "task-history-cleanup",
|
||||
Name: "Task history cleanup",
|
||||
|
||||
Reference in New Issue
Block a user