gpuq worker: tee job output to pane for live viewing
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -32,8 +32,8 @@ while true; do
|
||||
fi
|
||||
name=$(basename "$job" .sh)
|
||||
echo "[gpuq $ID] $(date +%F_%H:%M:%S) START $name"
|
||||
CUDA_VISIBLE_DEVICES=$GPU bash "$job" > "$LOCAL/$name.log" 2>&1
|
||||
rc=$?
|
||||
CUDA_VISIBLE_DEVICES=$GPU bash "$job" 2>&1 | tee "$LOCAL/$name.log"
|
||||
rc=${PIPESTATUS[0]}
|
||||
echo "[gpuq $ID] $(date +%F_%H:%M:%S) DONE $name rc=$rc"
|
||||
echo "rc=$rc" >> "$LOCAL/$name.log"
|
||||
rclone copy "$LOCAL/$name.log" "$Q/done/" -q
|
||||
|
||||
Reference in New Issue
Block a user