diff --git a/internal/cmd/scheduler.go b/internal/cmd/scheduler.go index 4cb361f..e7e8009 100644 --- a/internal/cmd/scheduler.go +++ b/internal/cmd/scheduler.go @@ -2,7 +2,6 @@ package cmd import ( "context" - "encoding/json" "fmt" "net/http" _ "net/http/pprof" @@ -527,10 +526,3 @@ func enqueueAccounts(ctx context.Context, logger *zap.Logger, statsd *statsd.Cli zap.Int64("duration", time.Since(now).Milliseconds()), ) } - -type Int64Slice []int64 - -func (ii Int64Slice) MarshalBinary() (data []byte, err error) { - bytes, err := json.Marshal(ii) - return bytes, err -} diff --git a/render.yaml b/render.yaml index 765196f..815eb4a 100644 --- a/render.yaml +++ b/render.yaml @@ -177,7 +177,7 @@ services: - type: worker name: worker.live-activities env: go - plan: starter plus + plan: starter envVars: - fromGroup: env-settings - key: BUGSNAG_APP_TYPE @@ -185,7 +185,7 @@ services: - key: BUGSNAG_METADATA_QUEUE value: live-activities scaling: - minInstances: 2 + minInstances: 1 maxInstances: 20 targetCPUPercent: 60 buildCommand: go install github.com/bugsnag/panic-monitor@latest && go build ./cmd/apollo