Commit 2618d195 authored by Celine Noirot's avatar Celine Noirot
Browse files

debug jflow

parent 99f4eebf
......@@ -507,11 +507,8 @@ class Workflow(threading.Thread):
return gr
def delete(self):
logging.getLogger("wf." + str(self.id)).debug("delete. Trying to delete " + self.directory)
if self.get_status() in [self.STATUS_COMPLETED, self.STATUS_FAILED, self.STATUS_ABORTED]:
logging.getLogger("wf." + str(self.id)).debug("status is OK for deletetion" )
utils.robust_rmtree(self.directory)
logging.getLogger("wf." + str(self.id)).debug("workflow deleted" )
@staticmethod
def config_parser(arg_lines):
......@@ -971,6 +968,8 @@ class Workflow(threading.Thread):
self._status = self.STATUS_STARTED
self._postprocess_status = self.STATUS_PENDING
self.end_time = None
#check rules
self.check_parameters_rules(self.args)
# if some args are provided, let's fill the parameters
self._set_parameters(self.args)
self._write_parameters()
......
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