Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions vllm/entrypoints/grpc_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,13 +228,16 @@ async def GetServerInfo(
Returns:
GetServerInfoResponse protobuf
"""
# TODO: last_receive_timestamp is meant to be the time of the last received
# request, not the current time; track it when requests are received.
last_receive_timestamp = time.time()
num_requests = self.async_llm.output_processor.get_num_unfinished_requests()

return vllm_engine_pb2.GetServerInfoResponse(
active_requests=num_requests,
is_paused=False, # TODO
last_receive_timestamp=time.time(), # TODO looks wrong?
uptime_seconds=time.time() - self.start_time,
is_paused=self.async_llm.is_paused,
last_receive_timestamp=last_receive_timestamp,
uptime_seconds=last_receive_timestamp - self.start_time,
server_type="vllm-grpc",
)

Expand Down