diff --git a/backend/app/tasks/scan.py b/backend/app/tasks/scan.py index e7b974c..55507e8 100644 --- a/backend/app/tasks/scan.py +++ b/backend/app/tasks/scan.py @@ -461,13 +461,16 @@ async def _scan_all_source_roots_async(): except Exception as e: logger.warning(f"Could not queue post-scan vision backfill: {e}") - # Re-extract metadata for photos missing GPS coordinates. - # Runs on every startup so photos scanned before the GPS fix - # eventually get their coordinates populated. - try: - backfill_gps.apply_async(countdown=30) - except Exception as e: - logger.warning(f"Could not queue post-scan GPS backfill: {e}") + # NOTE: we used to auto-queue `backfill_gps` here so photos + # scanned before the GPS-extraction fix would eventually get + # their coordinates populated. That fix shipped a long time + # ago, so on every modern restart it just re-ran + # extract_metadata for every photo that legitimately has no + # GPS in EXIF (screenshots, indoor shots, scans) — tens of + # thousands of pointless tasks that saturated worker-light + # for ~30 min after each deploy. Trigger manually via + # POST /api/v1/library/backfill-gps if you ever need it + # again (e.g. another extractor-logic fix lands). WATCHER_LOCK_KEY = "mulita:watch_folders:lock"