0.6.13: Fix watermark maintenance jobs, honest buy-link write reporting, Qobuz 403 diagnosis
scrub-watermark-text.py crashed on every run (missing import os). strip-watermark-art.py was starved every Sunday by lock contention from strip-mb-tags' growing runtime -- moved it to 01:00 so the rest of the weekly chain has room. enrich-buy-url.py's summary line counted matches found, not successful writes, so a run where every metaflac write failed (root-owned files) still reported "N tagged". pipeline-status.sh now tells a 403 from Qobuz (Akamai/CDN block) apart from a 401 (actually expired token) -- re-exporting the token does nothing for the former. Also fixes the dedup review table's "Caught by" badge overflowing into the Keep column's format pill.
This commit is contained in:
@@ -155,8 +155,19 @@ MAINTENANCE_JOBS: dict[str, tuple[dict, callable]] = {
|
||||
_log_rotation,
|
||||
),
|
||||
# ==== Weekly (Sunday) ====
|
||||
# strip_mb_tags runs first here at 01:00 -- not 08:30 like the rest of
|
||||
# this chain -- because its runtime isn't stable: 10m19s on 2026-07-12,
|
||||
# 39.6min on 2026-07-19 (MusicBrainz lookup latency scales with library
|
||||
# size and isn't under our control). At 08:30 that variance repeatedly
|
||||
# starved every job behind it: strip_watermark_art waited the full
|
||||
# SCHEDULED_LOCK_WAIT_SECONDS and gave up every week from 07-12 onward,
|
||||
# and on 07-19 the starvation cascaded all the way through genre:run,
|
||||
# normalize_casing, beets_update_sync, dedup:scan, and both gen_*_playlist
|
||||
# jobs. 01:00 sits in the dead zone before the first playlist sync (05:00)
|
||||
# and well after log_rotation (00:00), so even a run several times slower
|
||||
# than 07-19's is guaranteed to release the lock long before 08:30.
|
||||
"maintenance:strip_mb_tags": (
|
||||
dict(minute=30, hour=8, day_of_week="sun"),
|
||||
dict(minute=0, hour=1, day_of_week="sun"),
|
||||
_lib("maintenance:strip_mb_tags", "strip-mb-tags.sh"),
|
||||
),
|
||||
"maintenance:strip_watermark_art": (
|
||||
|
||||
Reference in New Issue
Block a user