diff --git a/Deployment/master.conf.template b/Deployment/master.conf.template index d11db6a..721c3ae 100644 --- a/Deployment/master.conf.template +++ b/Deployment/master.conf.template @@ -359,7 +359,6 @@ CRITICAL_MAINTENANCE_SCRIPTS=( "Docker_Essentials/downloaders_reset.sh" # clear stuck download states every 30min "Media/play_state_sync.sh" # sync watched/resume state across Emby + Jellyfin - "Arrs_Stack/arr_cache_prefill.sh ARR_PREFILL_WAIT_MINUTES=1" # keep the shared arr tracked-data cache fresh — a live fetch+write takes seconds, not the boot-time 10min wait ceiling ) # Shares synced every 30 minutes — defined per host in host*.conf. @@ -374,6 +373,12 @@ # INTERMEDIATE_SYNC_SHARES is host-specific — configure HOST*_INTERMEDIATE_SYNC_SHARES in host*.conf. INTERMEDIATE_MAINTENANCE_SCRIPTS=( + # Moved here from CRITICAL (30min) 2026-07-17 — nothing in the critical tier actually + # reads this cache, and every real consumer (arr_sync/arrs_failed_stalled_recovery + # here, lidarr/sonarr/radarr_cleanup + the classification scans in DAILY) already + # tolerates staleness well past 4h (arr_get_tracked_data()'s own fallback tolerates up + # to 1 day). 30min was true "always fresh" but had no consumer that needed it that often. + "Arrs_Stack/arr_cache_prefill.sh ARR_PREFILL_WAIT_MINUTES=1" # keep the shared arr tracked-data cache fresh "Arrs_Stack/arrs_failed_stalled_recovery.sh" # blocklist + re-search failed/stalled arr queue items ) # arr_sync.sh runs as a fixed first step in intermediate_sync_maintenance.sh — not listed here. @@ -393,6 +398,12 @@ "Arrs_Stack/lidarr_cleanup.sh" # remove orphaned music files "Arrs_Stack/sonarr_cleanup.sh" # remove orphaned TV files "Arrs_Stack/radarr_cleanup.sh" # remove orphaned movie files + # Runs after cleanup, not before — frees disk space from orphans/junk first, so the + # searches triggered below (for relocated hasFile=false/episodeFileCount=0 entries) + # have headroom for the new grabs they cause, rather than contending with clutter + # cleanup hasn't swept yet. + "Arrs_Stack/radarr_classification_scan.sh --remove-junk --move" # fix anime/kids misclassification + remove bad-metadata entries + "Arrs_Stack/sonarr_classification_scan.sh --move" # fix anime/kids misclassification "Arrs_Stack/lidarr_missing_art.sh" # fetch missing album/artist artwork (HOST1 only — self-guards) "Arrs_Stack/radarr_tmdb_removed.sh" # remove movies dropped from TMDb "Arrs_Stack/sonarr_tvdb_removed.sh" # remove series dropped from TVDB