tweak accounts and batch size

This commit is contained in:
Andre Medeiros 2021-07-22 21:52:29 -04:00
parent 5848d9584d
commit 1249f54bf2

View file

@ -19,7 +19,7 @@ import (
) )
const ( const (
batchSize = 200 batchSize = 250
checkTimeout = 60 // how long until we force a check checkTimeout = 60 // how long until we force a check
enqueueTimeout = 5 // how long until we try to re-enqueue 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 last_enqueued_at < $1
OR last_checked_at < $2 OR last_checked_at < $2
ORDER BY last_checked_at ORDER BY last_checked_at
LIMIT 2000 LIMIT 2500
) )
UPDATE accounts UPDATE accounts
SET last_enqueued_at = $3 SET last_enqueued_at = $3