Daily job parses new rotation lists and refits thresholds before ranking; fix backfill wait loop (pgrep -f matched its parent shell); NMF runs inside backfill.sh
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,6 +0,0 @@
|
||||
#!/bin/bash
|
||||
# One-off: New Music Friday history once the running backfill has the ISRCs.
|
||||
cd "$(dirname "$0")/.." || exit 1
|
||||
while pgrep -f "scripts/backfill.sh" >/dev/null; do sleep 120; done
|
||||
./target/release/airplay collect --only nmf --backfill
|
||||
./target/release/airplay stats
|
||||
+2
-1
@@ -4,7 +4,8 @@
|
||||
cd "$(dirname "$0")/.." || exit 1
|
||||
bin=./target/release/airplay
|
||||
# Wait for collectors already running (a backfill started by hand, the daily timer).
|
||||
while pgrep -f "release/airplay collect" >/dev/null; do sleep 60; done
|
||||
# (match the process name, not -f: a parent shell whose command line mentions the binary would match forever)
|
||||
while pgrep -x airplay -a | grep -q " collect"; do sleep 60; done
|
||||
for source in dr hitlisten deezer musicbrainz spotify nmf playlists; do
|
||||
echo "== $(date -u +%FT%TZ) $source"
|
||||
$bin collect --only "$source" --backfill
|
||||
|
||||
Reference in New Issue
Block a user