#!/bin/bash # One-off: when the first passes finish, run discographies and NMF artist pages again for the # artists the pool added meanwhile, then refresh the forecasts and the site. cd "$(dirname "$0")/.." || exit 1 running() { pgrep -x airplay -a | grep -q -- "$1"; } while running "only discographies"; do sleep 60; done ./target/release/airplay collect --only discographies while running "only nmf-artists"; do sleep 60; done ./target/release/airplay collect --only nmf-artists --backfill ./target/release/airplay model rank --top 0 && systemctl restart airplay-web