Skip to content

Commit

Permalink
handlers: Increase job queue parallism
Browse files Browse the repository at this point in the history
  • Loading branch information
dbanck committed Jun 7, 2024
1 parent 7913c3b commit 99bb90f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/langserver/handlers/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -479,12 +479,12 @@ func (svc *service) configureSessionDependencies(ctx context.Context, cfgOpts *s

svc.stateStore.SetLogger(svc.logger)

svc.lowPrioIndexer = scheduler.NewScheduler(svc.stateStore.JobStore, 1, job.LowPriority)
svc.lowPrioIndexer = scheduler.NewScheduler(svc.stateStore.JobStore, 2, job.LowPriority)
svc.lowPrioIndexer.SetLogger(svc.logger)
svc.lowPrioIndexer.Start(svc.sessCtx)
svc.logger.Printf("started low priority scheduler")

svc.highPrioIndexer = scheduler.NewScheduler(svc.stateStore.JobStore, 1, job.HighPriority)
svc.highPrioIndexer = scheduler.NewScheduler(svc.stateStore.JobStore, 2, job.HighPriority)
svc.highPrioIndexer.SetLogger(svc.logger)
svc.highPrioIndexer.Start(svc.sessCtx)
svc.logger.Printf("started high priority scheduler")
Expand Down

0 comments on commit 99bb90f

Please sign in to comment.