diff options
| author | Paul Buetow <paul@buetow.org> | 2026-05-13 20:19:39 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-05-13 20:19:39 +0300 |
| commit | f01959bc1157082709de501c902f8af0c263b1a3 (patch) | |
| tree | 3ca6b465acf52a6dc1aca81411032508bbad2923 /f3s/beets-art/Justfile | |
| parent | 4b583f7d4ee660b7b2e74603764d5e121c7ca549 (diff) | |
f3s/beets-art: fix BEETSDIR being read-only (state.pickle write failure)
The ConfigMap mount at /etc/beets is kernel-enforced read-only, so beets
could not write its incremental import state file (state.pickle), which
broke incremental: yes — every nightly run would re-walk the entire
library.
Fix: point BEETSDIR at the writable state PVC (/state) and pass
-c /etc/beets/config.yaml on every beet invocation so the ConfigMap is
still the single source of truth for config.
Also fix the Justfile run-now recipe to use a bash shebang so $() works.
Amp-Thread-ID: https://ampcode.com/threads/T-019e223a-d137-705e-879b-84130c0e78ea
Co-authored-by: Amp <amp@ampcode.com>
Diffstat (limited to 'f3s/beets-art/Justfile')
| -rw-r--r-- | f3s/beets-art/Justfile | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/f3s/beets-art/Justfile b/f3s/beets-art/Justfile index 4313a55..c3120c4 100644 --- a/f3s/beets-art/Justfile +++ b/f3s/beets-art/Justfile @@ -33,9 +33,11 @@ logs: # Trigger an ad-hoc run *right now* (does not affect the schedule). # Useful for the initial backfill: the first run will be the slow one. run-now: - @ts=$$(date +%s); \ - kubectl create job --from=cronjob/{{CRONJOB}} -n {{NAMESPACE}} {{CRONJOB}}-manual-$$ts; \ - echo "Created job {{CRONJOB}}-manual-$$ts. Tail with: just logs" + #!/usr/bin/env bash + set -euo pipefail + ts=$(date +%s) + kubectl create job --from=cronjob/{{CRONJOB}} -n {{NAMESPACE}} {{CRONJOB}}-manual-$ts + echo "Created job {{CRONJOB}}-manual-$ts. Tail with: just logs" # Pause the schedule (e.g. while debugging or doing a one-off pass) suspend: |
