gpuq: idle-time class dispatcher (single-writer, race-free) + docs

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Nils
2026-07-14 12:47:23 +02:00
co-authored by Claude Fable 5
parent 9329f22a63
commit cd8e94dda5
3 changed files with 57 additions and 9 deletions
+2 -4
View File
@@ -36,10 +36,8 @@ pick_worker() { # $1 = class
if [ "$1" = "--class" ]; then
CLASS=$2; shift 2
for f in "$@"; do
W=$(pick_worker "$CLASS")
[ -z "$W" ] && { echo "no workers in class $CLASS"; exit 1; }
rclone copy "$f" "jspace:jspace/gpuq/$W/pending/" -q
echo "queued $(basename $f) -> $W (class $CLASS)"
rclone copy "$f" "jspace:jspace/gpuq/_class-pending/$CLASS/" -q
echo "queued $(basename $f) -> class $CLASS (dispatcher assigns on idle)"
done
exit 0
fi