def _on_complete_hook(self, my_task):
times = int(valueof(my_task, self.times, <NUM_LIT:1>)) + self.queued<EOL>for i in range(times):<EOL><INDENT>for task_name in self.context:<EOL><INDENT>task = my_task.workflow.get_task_spec_from_name(task_name)<EOL>task._on_trigger(my_task)<EOL><DEDENT><DEDENT>self.queued = <NUM_LIT:0><EOL>TaskSpec._on_complete_hook(self, my_task)<EOL>
A hook into _on_complete() that does the task specific work.

:type  my_task: Task
:param my_task: A task in which this method is executed.
:rtype:  bool
:returns: True on success, False otherwise.