Improve Processing of Sync Tasks

This commit is contained in:
yash-signal 2025-02-25 09:18:42 -06:00 committed by GitHub
commit 0f767c0098
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 323 additions and 24 deletions

View file

@ -234,7 +234,7 @@ async function processSyncTasksBatch(
previousRowId: number | null
): Promise<number | null> {
log.info('syncTasks: Fetching tasks');
const result = await DataWriter.dequeueOldestSyncTasks(previousRowId);
const result = await DataWriter.dequeueOldestSyncTasks({ previousRowId });
const syncTasks = result.tasks;
if (syncTasks.length === 0) {