fix(api): add device index to job status endpoint
This commit is contained in:
parent
ed2e15a67e
commit
ae434f5c11
|
@ -169,5 +169,5 @@ class DevicePoolExecutor:
|
||||||
|
|
||||||
future.add_done_callback(job_done)
|
future.add_done_callback(job_done)
|
||||||
|
|
||||||
def status(self) -> Dict[str, Tuple[bool, int]]:
|
def status(self) -> List[Tuple[str, int, bool, int]]:
|
||||||
return [(job.key, job.future.done(), job.get_progress()) for job in self.jobs]
|
return [(job.key, job.context.device_index.value, job.future.done(), job.get_progress()) for job in self.jobs]
|
||||||
|
|
Loading…
Reference in New Issue