chore: 后端 agent 和 users 模块代码更新优化
This commit is contained in:
@@ -9,16 +9,15 @@ APP_SCRIPT = ROOT_DIR / "infra" / "scripts" / "app.sh"
|
||||
|
||||
def test_worker_commands_use_taskiq() -> None:
|
||||
content = APP_SCRIPT.read_text(encoding="utf-8")
|
||||
removed_runner = "uv run c" "elery"
|
||||
removed_runner = "uv run celery"
|
||||
|
||||
assert "uv run taskiq worker" in content
|
||||
assert "core.taskiq.app:critical_broker" in content
|
||||
assert "core.taskiq.app:default_broker" in content
|
||||
assert "core.taskiq.app:bulk_broker" in content
|
||||
assert 'pgrep -f "taskiq.*worker"' in content
|
||||
assert 'pkill -f "taskiq.*worker"' in content
|
||||
assert 'pgrep -f "gunicorn.*app:app"' in content
|
||||
assert 'pkill -f "gunicorn.*app:app"' in content
|
||||
assert 'pgrep -f "uv run taskiq worker core.taskiq.app:"' in content
|
||||
assert 'kill_pids_gracefully "taskiq workers"' in content
|
||||
assert "gunicorn" not in content
|
||||
assert removed_runner not in content
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user