예제 #1
0
def case_changed_receiver(sender, case, **kwargs):
    try:
        handler_ids = CaseReminderHandler.get_handlers(case.domain,
            ids_only=True)
        if len(handler_ids) > 0:
            case_changed.delay(case._id, handler_ids)
    except Exception:
        notify_exception(None,
            message="Error in reminders case changed receiver for case %s" %
            case._id)
예제 #2
0
def case_changed_receiver(sender, case, **kwargs):
    try:
        handler_ids = CaseReminderHandler.get_handler_ids(case.domain,
            reminder_type_filter=REMINDER_TYPE_DEFAULT)
        if len(handler_ids) > 0:
            case_changed.delay(case._id, handler_ids)
    except Exception:
        notify_exception(None,
            message="Error in reminders case changed receiver for case %s" %
            case._id)
예제 #3
0
def case_changed_receiver(sender, case, **kwargs):
    """
    Spawns a task to update reminder instances tied to the given case.
    """
    try:
        case_changed.delay(case.domain, case._id)
    except Exception:
        notify_exception(
            None,
            message="Could not create reminders case_changed task for case %s" % case._id
        )