Skip to content

Commit

Permalink
Fix pytest_sessionstart
Browse files Browse the repository at this point in the history
  • Loading branch information
s5u13b committed Feb 20, 2025
1 parent 862e067 commit 3cad314
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions llumnix/entrypoints/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import os
import time
from typing import Dict, Optional, List, Tuple
import traceback
import ray

from llumnix.manager import Manager
Expand Down
4 changes: 4 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@
from llumnix.utils import random_uuid


def pytest_sessionstart(session):
subprocess.run(["ray", "start", "--head", "--disable-usage-stats", "--port=6379"], check=False,
stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)

def cleanup_ray_env_func():
try:
# list_placement_groups cannot take effects.
Expand Down

0 comments on commit 3cad314

Please sign in to comment.