code: def schedule_deleted(sender, instance, **kwargs):
      
      from contentstore.tasks import deactivate_schedule
  
      deactivate_schedule.delay(str(instance.scheduler_schedule_id))
docs: Fires off the celery task to ensure that this schedule is deactivated
  
      Arguments:
          sender {class} -- The model class, always Schedule
          instance {Schedule} --
              The instance of the schedule that we want to deactivate