"""Signal handlers for the CourseGraph application"""fromdjango.dispatch.dispatcherimportreceiverfromxmodule.modulestore.djangoimportSignalHandlerfromopenedx.core.djangoapps.coursegraph.utilsimportCourseLastPublishedCache@receiver(SignalHandler.course_published)def_listen_for_course_publish(sender,course_key,**kwargs):# pylint: disable=unused-argument""" Register when the course was published on a course publish event """CourseLastPublishedCache().set(course_key)