Skip to content

Commit

Permalink
Force to kill the session
Browse files Browse the repository at this point in the history
  • Loading branch information
robinren03 committed Sep 4, 2024
1 parent aa79410 commit 5720e9f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions vllm/entrypoints/openai/api_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,8 @@ async def schedule_exit(delay: float = 0.5) -> None:
import os, signal
await asyncio.sleep(delay) # 等待足够的时间来发送HTTP响应
os.kill(os.getpid(), signal.SIGINT)
await asyncio.sleep(delay * 10)
os.kill(os.getpid(), signal.SIGKILL)


@router.post("/tokenize")
Expand Down

0 comments on commit 5720e9f

Please sign in to comment.