[Core] Support async scheduling with uniproc executor (#24219)
Signed-off-by: Nick Hill <nhill@redhat.com> Signed-off-by: Ronald1995 <ronaldautomobile@163.com> Co-authored-by: Ronald1995 <ronaldautomobile@163.com> Co-authored-by: Robert Shaw <114415538+robertgshaw2-redhat@users.noreply.github.com>
This commit is contained in:
co-authored by
Ronald1995
Robert Shaw
parent
8226dd56bf
commit
4fdd6f5cbf
@@ -245,8 +245,8 @@ class InprocClient(EngineCoreClient):
|
||||
self.engine_core = EngineCore(*args, **kwargs)
|
||||
|
||||
def get_output(self) -> EngineCoreOutputs:
|
||||
outputs, _ = self.engine_core.step()
|
||||
return outputs.get(0) or EngineCoreOutputs()
|
||||
outputs, _ = self.engine_core.step_fn()
|
||||
return outputs and outputs.get(0) or EngineCoreOutputs()
|
||||
|
||||
def get_supported_tasks(self) -> tuple[SupportedTask, ...]:
|
||||
return self.engine_core.get_supported_tasks()
|
||||
|
||||
Reference in New Issue
Block a user