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()
示例#2
0
    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()
示例#3
0
    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
示例#4
0
    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