refactor: reorganize service management commands in arty.yml
- Replace shell script calls with direct supervisorctl commands
- Organize services hierarchically: services/{service}/action
- Add all service control commands: start, stop, restart, status, logs
- Support both individual service control and all services control
- Remove obsolete script-based service management
New command structure:
- All services: arty services/{start,stop,restart,status}
- ComfyUI: arty services/comfyui/{start,stop,restart,status,logs}
- Orchestrator: arty services/orchestrator/{start,stop,restart,status,logs}
This commit is contained in:
58
arty.yml
58
arty.yml
@@ -605,16 +605,25 @@ scripts:
|
||||
#
|
||||
# Service Management (Supervisor-based)
|
||||
#
|
||||
services/start: bash /workspace/ai/scripts/start-all.sh
|
||||
services/stop: bash /workspace/ai/scripts/stop-all.sh
|
||||
services/restart: bash /workspace/ai/scripts/stop-all.sh && bash /workspace/ai/scripts/start-all.sh
|
||||
services/status: bash /workspace/ai/scripts/status.sh
|
||||
services/logs: supervisorctl -c /workspace/supervisord.conf tail -f comfyui
|
||||
services/logs-orchestrator: supervisorctl -c /workspace/supervisord.conf tail -f orchestrator
|
||||
services/restart-comfyui: supervisorctl -c /workspace/supervisord.conf restart comfyui
|
||||
services/restart-orchestrator: supervisorctl -c /workspace/supervisord.conf restart orchestrator
|
||||
services/start-orchestrator: supervisorctl -c /workspace/supervisord.conf start orchestrator
|
||||
services/stop-orchestrator: supervisorctl -c /workspace/supervisord.conf stop orchestrator
|
||||
# All services
|
||||
services/start: supervisorctl -c /workspace/supervisord.conf start all
|
||||
services/stop: supervisorctl -c /workspace/supervisord.conf stop all
|
||||
services/restart: supervisorctl -c /workspace/supervisord.conf restart all
|
||||
services/status: supervisorctl -c /workspace/supervisord.conf status
|
||||
|
||||
# ComfyUI service
|
||||
services/comfyui/start: supervisorctl -c /workspace/supervisord.conf start comfyui
|
||||
services/comfyui/stop: supervisorctl -c /workspace/supervisord.conf stop comfyui
|
||||
services/comfyui/restart: supervisorctl -c /workspace/supervisord.conf restart comfyui
|
||||
services/comfyui/status: supervisorctl -c /workspace/supervisord.conf status comfyui
|
||||
services/comfyui/logs: supervisorctl -c /workspace/supervisord.conf tail -f comfyui
|
||||
|
||||
# Orchestrator service
|
||||
services/orchestrator/start: supervisorctl -c /workspace/supervisord.conf start orchestrator
|
||||
services/orchestrator/stop: supervisorctl -c /workspace/supervisord.conf stop orchestrator
|
||||
services/orchestrator/restart: supervisorctl -c /workspace/supervisord.conf restart orchestrator
|
||||
services/orchestrator/status: supervisorctl -c /workspace/supervisord.conf status orchestrator
|
||||
services/orchestrator/logs: supervisorctl -c /workspace/supervisord.conf tail -f orchestrator
|
||||
|
||||
#
|
||||
# Health Checks
|
||||
@@ -696,20 +705,25 @@ notes: |
|
||||
SERVICE MANAGEMENT
|
||||
========================================
|
||||
|
||||
Start/Stop:
|
||||
- arty run services/start # Start all services via Supervisor
|
||||
- arty run services/stop # Stop all services
|
||||
- arty run services/restart # Restart all services
|
||||
- arty run services/status # Check service status
|
||||
All Services:
|
||||
- arty services/start # Start all services
|
||||
- arty services/stop # Stop all services
|
||||
- arty services/restart # Restart all services
|
||||
- arty services/status # Check all services status
|
||||
|
||||
Individual Services:
|
||||
- arty run services/restart-comfyui
|
||||
- arty run services/start-orchestrator
|
||||
- arty run services/stop-orchestrator
|
||||
ComfyUI Service:
|
||||
- arty services/comfyui/start # Start ComfyUI
|
||||
- arty services/comfyui/stop # Stop ComfyUI
|
||||
- arty services/comfyui/restart # Restart ComfyUI
|
||||
- arty services/comfyui/status # Check ComfyUI status
|
||||
- arty services/comfyui/logs # Follow ComfyUI logs
|
||||
|
||||
Logs:
|
||||
- arty run services/logs # Follow ComfyUI logs
|
||||
- arty run services/logs-orchestrator
|
||||
Orchestrator Service:
|
||||
- arty services/orchestrator/start # Start orchestrator
|
||||
- arty services/orchestrator/stop # Stop orchestrator
|
||||
- arty services/orchestrator/restart # Restart orchestrator
|
||||
- arty services/orchestrator/status # Check orchestrator status
|
||||
- arty services/orchestrator/logs # Follow orchestrator logs
|
||||
|
||||
========================================
|
||||
HEALTH & MONITORING
|
||||
|
||||
Reference in New Issue
Block a user