'Send a signal just before items are published in the course.'

def send_pre_publish_signal(self, bulk_ops_record, course_id):

    signal_handler = getattr(self, 'signal_handler', None)
    if (signal_handler and bulk_ops_record.has_publish_item):
        signal_handler.send('pre_publish', course_key=course_id)
