Wrap the forced yt-dlp download (and its node/ffmpeg children) and the rsync upload with 'nice -n 19 ionice -c 3' so the known-big, slow /force job yields the CPU and disk to everything else under load while still finishing fast when idle. Normal short downloads stay at full priority. Best-effort: prefix is empty if the tools are absent. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
48 KiB
48 KiB