Move iter_tasks in task