Commit 056252b3 authored by Jerome Mariette's avatar Jerome Mariette
Browse files

handle sys.exit from thread

parent 90cfca64
......@@ -173,14 +173,16 @@ class Workflow(threading.Thread):
self._serialize()
# if not done yet, init the component nameids list before to run
if not self.component_nameids_is_init:
self.process()
try: self.process()
except SystemExit, e: print e
self.component_nameids_is_init = True
self._serialize()
self.process()
if len(self.components) > 0:
self._execute_weaver()
self._serialize()
self.post_process()
try: self.process()
except SystemExit, e: print e
if self.status == self.STATUS_STARTED: self.status = self.STATUS_COMPLETED
self.end_time = time.time()
self._serialize()
......
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