Speed up background message migration

This commit is contained in:
Fedor Indutny 2024-07-31 14:48:56 -07:00 committed by ayumi-signal
parent 02e7a9e1a5
commit 77f70489e7

View file

@ -988,7 +988,7 @@ export async function startApp(): Promise<void> {
);
idleDetector.on('idle', async () => {
const NUM_MESSAGES_PER_BATCH = 25;
const BATCH_DELAY = 10 * durations.SECOND;
const BATCH_DELAY = durations.SECOND / 2;
if (isIdleTaskProcessing) {
log.warn(