def on_course_publish(course_key):
 from openedx.core.djangoapps.credit import api, tasks
 if api.is_credit_course(course_key):
  tasks.update_credit_course_requirements.delay(unicode(course_key))
  log.info(u'Added task to update credit requirements for course "%s" to the task queue', course_key)

def on_course_publish ( course_key ) : from openedx . core . djangoapps . credit import api , tasks if api . is_credit_course ( course_key ) : tasks . update_credit_course_requirements . delay ( unicode ( course_key ) ) log . info ( u'Added task to update credit requirements for course "%s" to the task queue' , course_key )
will receive a delegated course_published signal from cms/djangoapps/contentstore/signals .