Not sure about the task_type is None call; may want to skip tasks with no type, or log an error; if there is a backwards compatability concern, may want to determine if None is specifically Grading or Training (currently checked here and on line 321