msg+='<font color="red">Failed to create a background task for rescoring "{0}" for student {1}.</font>'.format(module_state_key,unique_student_identifier)
msg+='<font color="red">Failed to create a background task for rescoring "{0}" for student {1}.</font>'.format(module_state_key,unique_student_identifier)
else:
else:
track_msg='rescore problem {problem} for student {student} in {course}'.format(problem=module_state_key,student=unique_student_identifier,course=course_id)
track_msg='rescore problem {problem} for student {student} in {course}'.format(problem=module_state_key,student=unique_student_identifier,course=course_id)
msg+='<font color="red">Failed to find any background tasks for course "{course}" and module "{problem}".</font>'.format(course=course_id,problem=problem_url)
msg+='<font color="red">Failed to find any background tasks for course "{course}" and module "{problem}".</font>'.format(course=course_id,problem=problem_url)