update prune cli to start scheduler but not all of the workers

This commit is contained in:
kim 2024-04-26 13:20:21 +01:00
parent 4a263f9e71
commit ea3a871689
1 changed files with 4 additions and 1 deletions

View File

@ -44,7 +44,10 @@ func setupPrune(ctx context.Context) (*prune, error) {
state.Caches.Init()
state.Caches.Start()
state.Workers.Start()
// Scheduler is required for the
// claner, but no other workers
// are needed for this CLI action.
state.Workers.StartScheduler()
dbService, err := bundb.NewBunDBService(ctx, &state)
if err != nil {