Commit e242f2e3 authored by Samuel GAIST's avatar Samuel GAIST

[execution][local] Improve setup handling

With Python 3.7, the runner failing its creation
doesn't propagate the same as with Python 3.6.
parent a166e994
Pipeline #33003 passed with stage
in 27 minutes and 16 seconds
...@@ -335,8 +335,12 @@ class LocalExecutor(BaseExecutor): ...@@ -335,8 +335,12 @@ class LocalExecutor(BaseExecutor):
loop_socket=self.loop_socket, loop_socket=self.loop_socket,
) )
retval = self.executor.setup() try:
if not retval: status = self.executor.setup()
except Exception:
status = 0
if not status:
self.__cleanup() self.__cleanup()
raise RuntimeError("Algorithm {} setup failed".format(self.algorithm.name)) raise RuntimeError("Algorithm {} setup failed".format(self.algorithm.name))
......
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