Esempio n. 1
0
 def update_execution_context(self):
     """
     storing context in task for resume process
     """
     tid = TaskUtil.get_task_context()
     WRK_LOGGER.debug("in update_execution_context Parent task : "+str(tid)+" : child tasks :"+str(self.worker_ids))
     task=Task.get_task(tid)
     if task is not None:
         self.execution_context["start_time"]=self.start_time
         self.execution_context["worker_ids"]=self.worker_ids
         task.context["execution_context"]=self.execution_context
         DBSession.add(task)
         WRK_LOGGER.debug("in update_execution_context updated Parent task : "+str(tid))
Esempio n. 2
0
 def update_execution_context(self):
     """
     storing context in task for resume process
     """
     tid = TaskUtil.get_task_context()
     WRK_LOGGER.debug("in update_execution_context Parent task : " +
                      str(tid) + " : child tasks :" + str(self.worker_ids))
     task = Task.get_task(tid)
     if task is not None:
         self.execution_context["start_time"] = self.start_time
         self.execution_context["worker_ids"] = self.worker_ids
         task.context["execution_context"] = self.execution_context
         DBSession.add(task)
         WRK_LOGGER.debug(
             "in update_execution_context updated Parent task : " +
             str(tid))
Esempio n. 3
0
 def set_parent_task(self, t):
     prnt_task = TaskUtil.get_task_context()
     if prnt_task is not None:
         t.parent_task_id = prnt_task
     return t
Esempio n. 4
0
 def set_parent_task(self, t):
     prnt_task = TaskUtil.get_task_context()
     if prnt_task is not None:
         t.parent_task_id = prnt_task
     return t