def async_sla_compute_and_notify_task(*args, **kwargs): logger.debug("Computing SLAs and notifying as needed") try: system_settings = System_Settings.objects.get() if system_settings.enable_finding_sla: sla_compute_and_notify(*args, **kwargs) except Exception as e: logger.error("An unexpected error was thrown calling the SLA code: {}".format(e))
def async_sla_compute_and_notify_task(*args, **kwargs): logger.debug("Computing SLAs and notifying as needed") try: sla_compute_and_notify(*args, **kwargs) except Exception as e: logger.error( "An unexpected error was thrown calling the SLA code: {}".format( e))
def handle(self, *args, **options): sla_compute_and_notify()