def METHOD_NAME(sender, **kwargs):
    """
    Notify the admins when a task has failed and rescheduled
    """
    name = kwargs['task'].verbose_name
    attempts = kwargs['task'].attempts
    last_error = kwargs['task'].last_error
    date_time = kwargs['task'].run_at
    task_name = kwargs['task'].task_name
    task_params = kwargs['task'].task_params
    notification.task_rescheduled_notify(name, attempts, last_error,
                                         date_time, task_name, task_params)