Ejemplo n.º 1
0
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))
Ejemplo n.º 2
0
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))
Ejemplo n.º 3
0
 def handle(self, *args, **options):
     sla_compute_and_notify()