Exemplo n.º 1
0
 def run_task(self, task, parent=None, name=None):
     if not isinstance(task, Task):
         task = Task(task, parent, name)
     if parent:
         parent.last_child = task
     task.run(self)
     return task
Exemplo n.º 2
0
 def run_task(self, task, parent=None):
     if not isinstance(task, Task):
         task = Task(task, parent)
     task.run(self)
     return task