Commit 46d16787 authored by zhuwenwen's avatar zhuwenwen
Browse files

请求进入到waitting队列后,增加request.is_finished()判断

parent 651e756b
...@@ -338,6 +338,10 @@ class Scheduler(SchedulerInterface): ...@@ -338,6 +338,10 @@ class Scheduler(SchedulerInterface):
break break
request = self.waiting.peek_request() request = self.waiting.peek_request()
if request.is_finished():
self.waiting.pop_request()
continue
# KVTransfer: skip request if still waiting for remote kvs. # KVTransfer: skip request if still waiting for remote kvs.
if request.status == RequestStatus.WAITING_FOR_REMOTE_KVS: if request.status == RequestStatus.WAITING_FOR_REMOTE_KVS:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment