pub fn add_task_with_parent(task: Arc<Task>, parent: TaskId)
Add a task and register a parent/child relation.