fix(voyager): order item popping by timestamp, not id (#3779)
since we requeue retryable errors with the same id (since 52e1a80fdd52d98f10b554b03aecf0248b160475), if there are many failing messages (due to a dead rpc, for example), all of the workers will be used to spin these failing messages. instead of ordering by id when popping an item from the queue, we now instead order by the created_at timestamp, and reinsert failed messages instead of simply rolling back the database transaction.
B
ben committed
76511744a921f1c9a24a563f71d96887f115ced3
Committed by GitHub <noreply@github.com>
on 2/16/2025, 3:21:43 PM