pub fn get_task_by_id(id: TaskId) -> Option<Arc<Task>>
Get a task by its TaskId (if still registered).