update prune cli to start scheduler but not all of the workers
This commit is contained in:
parent
4a263f9e71
commit
ea3a871689
|
@ -44,7 +44,10 @@ func setupPrune(ctx context.Context) (*prune, error) {
|
||||||
state.Caches.Init()
|
state.Caches.Init()
|
||||||
state.Caches.Start()
|
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)
|
dbService, err := bundb.NewBunDBService(ctx, &state)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in New Issue