exported getTaskType