do 2000 accounts at a time

This commit is contained in:
Andre Medeiros 2021-07-22 21:42:06 -04:00
parent 424e27b068
commit 5848d9584d

View file

@ -210,8 +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 1000 LIMIT 2000
FOR UPDATE SKIP LOCKED
) )
UPDATE accounts UPDATE accounts
SET last_enqueued_at = $3 SET last_enqueued_at = $3