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

@ -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;
};