Improve Processing of Sync Tasks

Co-authored-by: yash-signal <yash@signal.org>
This commit is contained in:
automated-signal 2025-02-25 11:56:22 -06:00 committed by GitHub
commit ebd360c3a3
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) {