Skip to main content

Module sync

Module sync 

Source
Expand description

Tauri commands for sync queue operations

The sync queue stores mutations (favorites, playback progress, etc.) that need to be synced to the Jellyfin server when connectivity is restored. Draining it lives in sync_drain (DR-131); this module is the storage and read side the UI lists from (DR-132). TRACES: UR-002, UR-017, UR-025 | DR-014, DR-131, DR-132

Structs§

SyncQueueItem
Sync queue item returned to frontend

Functions§

sync_cleanup_completed
Delete completed sync operations older than specified days
sync_clear_user
Delete all sync operations for a user (used during logout)
sync_get_pending
Get all pending sync operations for a user
sync_get_pending_count
Get count of pending sync operations for a user
sync_mark_completed
Mark a sync operation as completed
sync_mark_failed
Mark a sync operation as failed with error message
sync_mark_processing
Mark a sync operation as in progress
sync_queue_mutation
Queue a mutation for sync to server