mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2026-03-17 10:17:12 +08:00
Use request_id as the identifier when removing a request
Signed-off-by: weichen <calvin_zhu0210@outlook.com>
This commit is contained in:
parent
0000d981d2
commit
0431508388
@ -132,7 +132,7 @@ class WeightedScoreSorter:
|
||||
def __eq__(self, other_request_weighted_score: object) -> bool:
|
||||
if not isinstance(other_request_weighted_score, WeightedScoreSorter):
|
||||
return NotImplemented
|
||||
return self.weighted_score == other_request_weighted_score.weighted_score
|
||||
return self.request.request_id == other_request_weighted_score.request.request_id
|
||||
|
||||
def __update_stats(self):
|
||||
self.wait_time = time.time() - self.request_arrival_time
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user