make things better for the golang scheduler

This commit is contained in:
Andre Medeiros 2022-11-01 11:25:38 -04:00
parent 00ea87b0a8
commit 98cafdfaed
2 changed files with 1 additions and 3 deletions

View file

@ -48,8 +48,6 @@ func WorkerCmd(ctx context.Context) *cobra.Command {
poolSize := consumers / 4
runtime.GOMAXPROCS(consumers)
db, err := cmdutil.NewDatabasePool(ctx, poolSize)
if err != nil {
return err

View file

@ -91,7 +91,7 @@ services:
maxInstances: 30
targetCPUPercent: 80
buildCommand: go install github.com/bugsnag/panic-monitor@latest && go build ./cmd/apollo
startCommand: panic-monitor ./apollo worker --queue notifications --consumers 1024
startCommand: panic-monitor ./apollo worker --queue notifications --consumers 256
# Stuck Notifications Checker
- type: worker