diff --git a/internal/cmd/worker.go b/internal/cmd/worker.go index 9dca3de..1a76cd1 100644 --- a/internal/cmd/worker.go +++ b/internal/cmd/worker.go @@ -60,7 +60,7 @@ func WorkerCmd(ctx context.Context) *cobra.Command { } defer db.Close() - redis, err := cmdutil.NewRedisLocksClient(ctx, consumers) + redis, err := cmdutil.NewRedisLocksClient(ctx, poolSize) if err != nil { return err } diff --git a/render.yaml b/render.yaml index 1a0dd07..26bcf94 100644 --- a/render.yaml +++ b/render.yaml @@ -101,7 +101,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 512 + startCommand: panic-monitor ./apollo worker --queue notifications --consumers 1024 # Stuck Notifications Checker - type: worker