fix finished flag
This commit is contained in:
parent
525ee24e91
commit
401ee20526
|
@ -134,7 +134,7 @@ class DevicePoolExecutor:
|
||||||
def done(self, key: str) -> Tuple[Optional[bool], int]:
|
def done(self, key: str) -> Tuple[Optional[bool], int]:
|
||||||
for k, p, c in self.finished_jobs:
|
for k, p, c in self.finished_jobs:
|
||||||
if k == key:
|
if k == key:
|
||||||
return (c, p)
|
return (True, p)
|
||||||
|
|
||||||
if key not in self.active_jobs:
|
if key not in self.active_jobs:
|
||||||
logger.warn("checking status for unknown job: %s", key)
|
logger.warn("checking status for unknown job: %s", key)
|
||||||
|
|
Loading…
Reference in New Issue