This repository has been archived on 2026-08-19. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
ROCm-Research-Archive/Scripts and Tests/monitor_long.sh
T
2026-08-20 00:45:43 +02:00

21 lines
617 B
Bash

#!/bin/bash
# Long-wait monitor - check every 30s for up to 10 minutes
for i in $(seq 1 20); do
echo "=== CHECK $i ($(date +%H:%M:%S)) ==="
tail -3 /home/fabian/comfyui8.log
if ls /home/fabian/ComfyUI/output/bc250_test* 2>/dev/null; then
echo "*** IMAGE SAVED! ***"
ls -la /home/fabian/ComfyUI/output/
exit 0
fi
# Check if process still alive
if ! pgrep -f "python.*main.py" > /dev/null; then
echo "PROCESS DIED!"
tail -30 /home/fabian/comfyui8.log
exit 1
fi
sleep 30
done
echo "=== TIMEOUT 10min ==="
tail -30 /home/fabian/comfyui8.log