(sender, case, **kwargs)
Spawns a task to run auto update rules tied to the given case.
Spawns a task to run auto update rules tied to the given case.
Spawns a task to run auto update rules tied to the given case .
def case_changed_receiver(sender, case, **kwargs):
    """
    Spawns a task to run auto update rules tied to the given case.
    """
    try:
        from corehq.apps.data_interfaces.tasks import run_case_update_rules_on_save

        if RUN_AUTO_CASE_UPDATES_ON_SAVE.enabled(case.domain):
            run_case_update_rules_on_save.delay(case)
    except Exception as e:
        error_message = 'Exception in case update signal'
        notify_exception(None, "{msg}: {exc}".format(msg=error_message, exc=e))
def case_changed_receiver ( sender , case , * * kwargs ) : try : from corehq . apps . data_interfaces . tasks import run_case_update_rules_on_save if RUN_AUTO_CASE_UPDATES_ON_SAVE . enabled ( case . domain ) : run_case_update_rules_on_save . delay ( case ) except Exception as e : error_message = 'Exception in case update signal' notify_exception ( None , "{msg}: {exc}" . format ( msg = error_message , exc = e ) )