def handle(self, *args, **options): """ Management command entry point, simply call into the signal firiing """ log.info("Running management command to force purge old notifications...") purge_expired_notifications()
def notification_timer_callback(self, timer): purge_expired_notifications() # Reschedule the timer to run again the next day. result = { 'errors': [], 'reschedule_in_mins': timer.periodicity_min, } return result