Improve Processing of Sync Tasks

This commit is contained in:
yash-signal
2025-02-25 09:18:42 -06:00
committed by GitHub
parent b3805f1427
commit 0f767c0098
8 changed files with 323 additions and 24 deletions

View File

@@ -896,7 +896,13 @@ type WritableInterface = {
removeSyncTaskById: (id: string) => void;
saveSyncTasks: (tasks: Array<SyncTaskType>) => void;
dequeueOldestSyncTasks: (previousRowId: number | null) => {
incrementAllSyncTaskAttempts: () => void;
dequeueOldestSyncTasks: (options: {
previousRowId: number | null;
incrementAttempts?: boolean;
syncTaskTypes?: Array<SyncTaskType['type']>;
}) => {
tasks: Array<SyncTaskType>;
lastRowId: number | null;
};