From 1249f54bf26e53a661611f17cf2107f083962807 Mon Sep 17 00:00:00 2001 From: Andre Medeiros Date: Thu, 22 Jul 2021 21:52:29 -0400 Subject: [PATCH] tweak accounts and batch size --- internal/cmd/scheduler.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/cmd/scheduler.go b/internal/cmd/scheduler.go index 9908303..5439ddc 100644 --- a/internal/cmd/scheduler.go +++ b/internal/cmd/scheduler.go @@ -19,7 +19,7 @@ import ( ) const ( - batchSize = 200 + batchSize = 250 checkTimeout = 60 // how long until we force a check enqueueTimeout = 5 // how long until we try to re-enqueue ) @@ -210,7 +210,7 @@ func enqueueAccounts(ctx context.Context, logger *logrus.Logger, statsd *statsd. last_enqueued_at < $1 OR last_checked_at < $2 ORDER BY last_checked_at - LIMIT 2000 + LIMIT 2500 ) UPDATE accounts SET last_enqueued_at = $3