Commit cc50482a authored by Samuel GAIST's avatar Samuel GAIST

[execution][database] Handle the case when wait is called and process was not

parent a2957d5a
Pipeline #36724 passed with stage
in 2 minutes and 58 seconds
......@@ -223,7 +223,12 @@ class DBExecutor(object):
def wait(self):
"""Wait for the message handle to finish"""
self.message_handler.join()
try:
self.message_handler.join()
except RuntimeError:
# tried to join the handler before it has started.
pass
self.message_handler = None
def __str__(self):
......
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