live-previews: restart comfy at least once if we fail for unknown reasons

This commit is contained in:
Kasisnu
2024-07-26 11:54:38 +05:30
parent 8d94a8a041
commit 769bafc134
5 changed files with 167 additions and 64 deletions
@@ -0,0 +1,12 @@
#!/usr/bin/env bash
set -ex
cd /app
source venv/bin/activate
date > /restart.txt
echo /restart.txt | entr -nrz timeout -k 5 0 python main.py --listen 0.0.0.0 --highvram --disable-metadata