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

do not serialize the workflow when updating the status

parent 62e50c39
......@@ -890,8 +890,8 @@ class Workflow(threading.Thread):
except Exception as e:
self._log(str(e), traceback=traceback.format_exc(chain=False))
utils.display_error_message(str(e))
def _update_status_from_log(self):
def get_status(self):
# first update the status from weaver folders
# TODO update self.end_time
try:
......@@ -913,10 +913,6 @@ class Workflow(threading.Thread):
elif self.status != self.STATUS_COMPLETED:
self.status = self.STATUS_STARTED
except: pass
self._serialize()
def get_status(self):
self._update_status_from_log()
return self.status
def get_resource(self, resource):
......
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