Fix get_details to compare against task_name