Commit ad0accdd authored by Jerome Mariette's avatar Jerome Mariette
Browse files

No commit message

No commit message
parent 48cf40da
...@@ -180,12 +180,18 @@ class Workflow(threading.Thread): ...@@ -180,12 +180,18 @@ class Workflow(threading.Thread):
try: try:
self.process() self.process()
except SystemExit, e: except SystemExit, e:
self.status = self.STATUS_FAILED
self.end_time = time.time()
self._serialize()
raise RuntimeError('An error occurred when executing workflow: {0}'.format(e)) raise RuntimeError('An error occurred when executing workflow: {0}'.format(e))
self.component_nameids_is_init = True self.component_nameids_is_init = True
self._serialize() self._serialize()
try: try:
self.process() self.process()
except SystemExit, e: except SystemExit, e:
self.status = self.STATUS_FAILED
self.end_time = time.time()
self._serialize()
raise RuntimeError('An error occurred when executing workflow: {0}'.format(e)) raise RuntimeError('An error occurred when executing workflow: {0}'.format(e))
if len(self.components) > 0: if len(self.components) > 0:
self._execute_weaver() self._execute_weaver()
...@@ -344,6 +350,7 @@ class Workflow(threading.Thread): ...@@ -344,6 +350,7 @@ class Workflow(threading.Thread):
nest.compile() nest.compile()
except Exception as e: except Exception as e:
self.status = self.STATUS_FAILED self.status = self.STATUS_FAILED
self.end_time = time.time()
self._serialize() self._serialize()
raise SyntaxError('An error occurred when compiling script: {0}'.format(e)) raise SyntaxError('An error occurred when compiling script: {0}'.format(e))
self.components = [] self.components = []
......
Supports Markdown
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