feat: configure supervisord to run from /workspace/ai
- Create logs directory with .gitkeep - Update .gitignore to track logs dir but ignore log files - Update supervisord.conf with paths relative to /workspace/ai - Add supervisor control scripts to arty.yml (start/stop/status/restart) - All paths now use ../ to reference parent /workspace directory
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -42,7 +42,8 @@ env/
|
|||||||
|
|
||||||
# Logs
|
# Logs
|
||||||
*.log
|
*.log
|
||||||
logs/
|
logs/*
|
||||||
|
!logs/.gitkeep
|
||||||
*.out
|
*.out
|
||||||
|
|
||||||
# Supervisord runtime files
|
# Supervisord runtime files
|
||||||
|
|||||||
18
arty.yml
18
arty.yml
@@ -103,6 +103,24 @@ envs:
|
|||||||
|
|
||||||
# Deployment scripts for RunPod instances
|
# Deployment scripts for RunPod instances
|
||||||
scripts:
|
scripts:
|
||||||
|
#
|
||||||
|
# Supervisor Control Scripts
|
||||||
|
#
|
||||||
|
services/supervisor/start: |
|
||||||
|
set -a
|
||||||
|
source .env
|
||||||
|
set +a
|
||||||
|
supervisord -c supervisord.conf
|
||||||
|
|
||||||
|
services/supervisor/stop: |
|
||||||
|
supervisorctl -c supervisord.conf shutdown
|
||||||
|
|
||||||
|
services/supervisor/status: |
|
||||||
|
supervisorctl -c supervisord.conf status
|
||||||
|
|
||||||
|
services/supervisor/restart: |
|
||||||
|
supervisorctl -c supervisord.conf restart all
|
||||||
|
|
||||||
#
|
#
|
||||||
# System Setup Scripts
|
# System Setup Scripts
|
||||||
#
|
#
|
||||||
|
|||||||
0
logs/.gitkeep
Normal file
0
logs/.gitkeep
Normal file
@@ -24,8 +24,8 @@ port=0.0.0.0:9001
|
|||||||
|
|
||||||
# ComfyUI Server
|
# ComfyUI Server
|
||||||
[program:comfyui]
|
[program:comfyui]
|
||||||
command=bash ai/comfyui/start.sh
|
command=bash comfyui/start.sh
|
||||||
directory=ComfyUI
|
directory=../ComfyUI
|
||||||
autostart=true
|
autostart=true
|
||||||
autorestart=true
|
autorestart=true
|
||||||
startretries=3
|
startretries=3
|
||||||
@@ -35,14 +35,14 @@ stdout_logfile_maxbytes=50MB
|
|||||||
stdout_logfile_backups=10
|
stdout_logfile_backups=10
|
||||||
stderr_logfile_maxbytes=50MB
|
stderr_logfile_maxbytes=50MB
|
||||||
stderr_logfile_backups=10
|
stderr_logfile_backups=10
|
||||||
environment=HF_HOME="huggingface_cache",PYTORCH_CUDA_ALLOC_CONF="expandable_segments:True",TQDM_DISABLE="1"
|
environment=HF_HOME="../huggingface_cache",PYTORCH_CUDA_ALLOC_CONF="expandable_segments:True",TQDM_DISABLE="1"
|
||||||
priority=100
|
priority=100
|
||||||
stopwaitsecs=30
|
stopwaitsecs=30
|
||||||
|
|
||||||
# AI Model Orchestrator
|
# AI Model Orchestrator
|
||||||
[program:orchestrator]
|
[program:orchestrator]
|
||||||
command=python3 model-orchestrator/orchestrator_subprocess.py
|
command=python3 model-orchestrator/orchestrator_subprocess.py
|
||||||
directory=ai
|
directory=.
|
||||||
autostart=false
|
autostart=false
|
||||||
autorestart=true
|
autorestart=true
|
||||||
startretries=3
|
startretries=3
|
||||||
@@ -52,14 +52,14 @@ stdout_logfile_maxbytes=50MB
|
|||||||
stdout_logfile_backups=10
|
stdout_logfile_backups=10
|
||||||
stderr_logfile_maxbytes=50MB
|
stderr_logfile_maxbytes=50MB
|
||||||
stderr_logfile_backups=10
|
stderr_logfile_backups=10
|
||||||
environment=HF_HOME="huggingface_cache",HF_TOKEN="%(ENV_HF_TOKEN)s"
|
environment=HF_HOME="../huggingface_cache",HF_TOKEN="%(ENV_HF_TOKEN)s"
|
||||||
priority=200
|
priority=200
|
||||||
stopwaitsecs=30
|
stopwaitsecs=30
|
||||||
|
|
||||||
# ComfyUI WebDAV Sync Service
|
# ComfyUI WebDAV Sync Service
|
||||||
[program:webdav-sync]
|
[program:webdav-sync]
|
||||||
command=python3 webdav_sync.py
|
command=python3 webdav_sync.py
|
||||||
directory=ai/webdav-sync
|
directory=webdav-sync
|
||||||
autostart=true
|
autostart=true
|
||||||
autorestart=true
|
autorestart=true
|
||||||
startretries=3
|
startretries=3
|
||||||
@@ -69,7 +69,7 @@ stdout_logfile_maxbytes=50MB
|
|||||||
stdout_logfile_backups=10
|
stdout_logfile_backups=10
|
||||||
stderr_logfile_maxbytes=50MB
|
stderr_logfile_maxbytes=50MB
|
||||||
stderr_logfile_backups=10
|
stderr_logfile_backups=10
|
||||||
environment=WEBDAV_URL="%(ENV_WEBDAV_URL)s",WEBDAV_USERNAME="%(ENV_WEBDAV_USERNAME)s",WEBDAV_PASSWORD="%(ENV_WEBDAV_PASSWORD)s",WEBDAV_REMOTE_PATH="%(ENV_WEBDAV_REMOTE_PATH)s",COMFYUI_OUTPUT_DIR="ComfyUI/output"
|
environment=WEBDAV_URL="%(ENV_WEBDAV_URL)s",WEBDAV_USERNAME="%(ENV_WEBDAV_USERNAME)s",WEBDAV_PASSWORD="%(ENV_WEBDAV_PASSWORD)s",WEBDAV_REMOTE_PATH="%(ENV_WEBDAV_REMOTE_PATH)s",COMFYUI_OUTPUT_DIR="../ComfyUI/output"
|
||||||
priority=150
|
priority=150
|
||||||
stopwaitsecs=10
|
stopwaitsecs=10
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user