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)
log.debug("Found no background tasks for request: {course}, {problem}, and student {student}".format(course=course_id,problem=problem_url,student=student.username))
template='<font color="red">Failed to find any background tasks for course "{course}", module "{problem}" and student "{student}".</font>'
template='<font color="red">Failed to find any background tasks for course "{course}", module "{problem}" and student "{student}".</font>'
log.debug("Found no background tasks for request: {course}, {problem}".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)
msg+='<font color="red">Failed to find any background tasks for course "{course}" and module "{problem}".</font>'.format(course=course_id,problem=problem_url)