Bug 507441

Summary: Resume interrupted metadata sync
Product: [Applications] digikam Reporter: HubMiner <cal030>
Component: Maintenance-MetadataAssignee: Digikam Developers <digikam-bugs-null>
Status: REPORTED ---    
Severity: wishlist CC: caulier.gilles
Priority: NOR    
Version First Reported In: 8.7.0   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description HubMiner 2025-07-24 12:57:07 UTC
PROPOSAL: Create a queue mechanism for metadata-sync that survives app restarts.

STEPS:
* Media files are updated, resulting in "... files await synchronization".
* Click to start synchronization.
* While it is running, terminate DK process & verify it is completely shut down, aborting the sync before it is finished.
Start DK.

BEHAVIOR
Currently, DK is unaware that synchronization process was not completed, leaving XMP/media files in unknown state.
"Tools - Maintenance - Sync Metadata and Database" process is too heavy as it affects whole collections, running for very long time.

DK should save metadata sync in a queue and after a restart, it should resume XMP/media files synchronization process if the saved queue was not completed.

Extra nice to have: on a fresh start, put the remaining queue in a paused mode, so it can be resumed by clicking "... files await synchronization".

Extra extra nice to have: do not force media sync when shutting down DK.  Let users choose when to run it, since sync steps are saved.