mirror of
https://github.com/christianselig/apollo-backend
synced 2024-11-15 00:17:42 +00:00
schedule accounts in a predictable order
This commit is contained in:
parent
b0fadfb6d8
commit
e5e964f7e0
1 changed files with 1 additions and 0 deletions
|
@ -461,6 +461,7 @@ func enqueueAccounts(ctx context.Context, logger *zap.Logger, statsd *statsd.Cli
|
||||||
INNER JOIN devices ON devices.id = devices_accounts.device_id
|
INNER JOIN devices ON devices.id = devices_accounts.device_id
|
||||||
WHERE grace_period_expires_at >= NOW()
|
WHERE grace_period_expires_at >= NOW()
|
||||||
AND accounts.is_deleted IS FALSE
|
AND accounts.is_deleted IS FALSE
|
||||||
|
ORDER BY reddit_account_id
|
||||||
`
|
`
|
||||||
rows, err := pool.Query(ctx, query)
|
rows, err := pool.Query(ctx, query)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in a new issue