gpuq: idle-time class dispatcher (single-writer, race-free) + docs
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user