mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2024-05-31 22:58:32 +00:00
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.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 {
|
||||
|
|
Loading…
Reference in a new issue