We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c09126 commit a1630d6Copy full SHA for a1630d6
python/sglang/utils.py
@@ -25,8 +25,6 @@
25
from pydantic import BaseModel
26
from tqdm import tqdm
27
28
-from sglang.srt.utils import kill_process_tree
29
-
30
logger = logging.getLogger(__name__)
31
32
@@ -422,6 +420,8 @@ def terminate_process(process):
422
420
"""
423
421
Terminate the process and automatically release the reserved port.
424
+ from sglang.srt.utils import kill_process_tree
+
425
kill_process_tree(process.pid)
426
427
lock_socket = process_socket_map.pop(process, None)
0 commit comments