def METHOD_NAME(sender, **kwargs):
    """
    Notify the admins when a task has failed and removed from queue
    """
    name = kwargs['completed_task'].verbose_name
    attempts = kwargs['completed_task'].attempts
    last_error = kwargs['completed_task'].last_error
    date_time = kwargs['completed_task'].failed_at
    task_name = kwargs['completed_task'].task_name
    task_params = kwargs['completed_task'].task_params
    notification.task_failed_notify(name, attempts, last_error, date_time,
                                    task_name, task_params)