# 小虾 SaaS - Worker 服务启动脚本

Write-Host "=== 启动小虾 SaaS Worker 服务 ===" -ForegroundColor Green

# 设置 Python 路径
$env:PYTHONPATH = "F:\openclaw-saas"
Write-Host "PYTHONPATH: $env:PYTHONPATH" -ForegroundColor Cyan

# 切换到 Worker 目录
Set-Location F:\openclaw-saas\apps\worker

# 启动 Celery Worker
Write-Host "`n启动 Celery Worker..." -ForegroundColor Yellow
Write-Host "监听任务队列: Redis (47.98.113.167:6379)" -ForegroundColor Cyan
Write-Host "`n按 Ctrl+C 停止服务`n" -ForegroundColor Gray

celery -A celery_app worker --loglevel=info --pool=solo
