From 59c2372fa16d9964bedd2f3e8dcb9d40563423ee Mon Sep 17 00:00:00 2001 From: Gmer4Lfe Date: Sat, 23 May 2026 15:43:14 -0400 Subject: [PATCH] =?UTF-8?q?Fix=20stale=203-minute=20transcode=20timing=20?= =?UTF-8?q?=E2=80=94=20corrected=20to=207=20minutes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit transcode_management.sh runs every 7 minutes. Six references across README.md, README-Transcoding.md, Manual-Transcoding.md, transcode_manager.sh, and transcode_cleanup.sh still said 3 minutes from before the schedule change. --- README.md | 4 ++-- Transcodes/Manual-Transcoding.md | 4 ++-- Transcodes/README-Transcoding.md | 2 +- Transcodes/transcode_cleanup.sh | 2 +- Transcodes/transcode_manager.sh | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 46df4a6..12d033c 100644 --- a/README.md +++ b/README.md @@ -573,7 +573,7 @@ Every minute: → system_watchdog.sh system components: storage + WebGUI health → stability_watchdog.sh last resort — reboots when all else fails -Every 3 minutes: +Every 7 minutes: transcode_management.sh cleanup → manager (order non-negotiable) Every 15 minutes: @@ -620,7 +620,7 @@ Throughout the day (every minute via watchdog_orchestrator.sh): Throughout the day: fallback.sh watching: remote server, internet connectivity - transcode_management.sh managing: ramdisk ↔ SSD, session cleanup (every 3min) + transcode_management.sh managing: ramdisk ↔ SSD, session cleanup (every 7min) critical_sync_maintenance.sh keeping: auth stack + Emby current (every 30min) 1am: diff --git a/Transcodes/Manual-Transcoding.md b/Transcodes/Manual-Transcoding.md index 69250a1..32cd9be 100644 --- a/Transcodes/Manual-Transcoding.md +++ b/Transcodes/Manual-Transcoding.md @@ -216,7 +216,7 @@ ramdisk_setup.sh --log # verbose — show each creation step ## transcode_manager.sh -Monitors ramdisk usage and manages the symlink direction. Called second in every 3-minute +Monitors ramdisk usage and manages the symlink direction. Called second in every 7-minute cycle by `transcode_management.sh`. ### Three Modes @@ -325,7 +325,7 @@ transcode_manager.sh --no-log # suppress daily log write ## transcode_cleanup.sh Removes stale transcode files from ramdisk and SSD fallback. Called first in every -3-minute cycle — cleanup before usage measurement is non-negotiable. +7-minute cycle — cleanup before usage measurement is non-negotiable. ### Deletion Rules diff --git a/Transcodes/README-Transcoding.md b/Transcodes/README-Transcoding.md index bd8eef0..2176d9c 100644 --- a/Transcodes/README-Transcoding.md +++ b/Transcodes/README-Transcoding.md @@ -99,7 +99,7 @@ Three scripts, one goal: keep transcodes on RAM, fall back to SSD when needed. `ramdisk_setup.sh` runs at array start — creates the tmpfs, SSD fallback directory, symlink, and pre-creates `transcoding-temp`. Everything that must exist before Emby starts. -`transcode_cleanup.sh` runs first in every 3-minute cycle — removes stale files from both +`transcode_cleanup.sh` runs first in every 7-minute cycle — removes stale files from both ramdisk and SSD. Cleans up before usage is measured, so the manager sees real load. `transcode_manager.sh` runs second — measures ramdisk usage, flips the symlink if diff --git a/Transcodes/transcode_cleanup.sh b/Transcodes/transcode_cleanup.sh index 3b98f99..a08bfb1 100644 --- a/Transcodes/transcode_cleanup.sh +++ b/Transcodes/transcode_cleanup.sh @@ -49,7 +49,7 @@ # # Wait Lock # acquire_lock "wait" — waits if a previous cleanup run is still active rather -# than exiting. The caller's 3-minute interval can overlap on a slow system. +# than exiting. The caller's 7-minute interval can overlap on a slow system. # # lsof Timeout # lsof call capped at 15 seconds per location — prevents blocking indefinitely diff --git a/Transcodes/transcode_manager.sh b/Transcodes/transcode_manager.sh index 3bb94c2..9dfa194 100644 --- a/Transcodes/transcode_manager.sh +++ b/Transcodes/transcode_manager.sh @@ -49,7 +49,7 @@ # ============================================================================================== # # Wait Lock -# acquire_lock "wait" — waits if the previous run is still active. The 3-minute +# acquire_lock "wait" — waits if the previous run is still active. The 7-minute # interval can overlap on a system under heavy load. # # Docker Timeout