def _on_complete_hook(self, my_task):
<EOL>outputs = []<EOL>for condition, output in self.cond_task_specs:<EOL><INDENT>if self.choice is not None and output not in self.choice:<EOL><INDENT>continue<EOL><DEDENT>if condition is None:<EOL><INDENT>outputs.append(self._wf_spec.get_task_spec_from_name(output))<EOL>continue<EOL><DEDENT>if not condition._matches(my_task):<EOL><INDENT>continue<EOL><DEDENT>outputs.append(self._wf_spec.get_task_spec_from_name(output))<EOL><DEDENT>my_task._sync_children(outputs, Task.FUTURE)<EOL>for child in my_task.children:<EOL><INDENT>child.task_spec._update(child)<EOL><DEDENT>
Runs the task. Should not be called directly.
Returns True if completed, False otherwise.