https://github.com/apache/airflow/blob/main/airflow/cli/commands/task_command.py#L145
"triggering_dataset_events": lazy_object_proxy.Proxy(get_triggering_events),
        "ts": ts,
        "ts_nodash": ts_nodash,
        "ts_nodash_with_tz": ts_nodash_with_tz,
        "var": {
            "json": VariableAccessor(deserialize_json=True),
            "value": VariableAccessor(deserialize_json=False),
        },
        "conn": ConnectionAccessor(),
        "yesterday_ds": get_yesterday_ds(),
        "yesterday_ds_nodash": get_yesterday_ds_nodash(),
    }
    
    
    return Context(context)  
def _is_eligible_to_retry(*, task_instance: TaskInstance | TaskInstancePydantic):
    """
    Is task instance is eligible for retry.
    :param task_instance: the task instance
    :meta private:
    """
    if task_instance.state == TaskInstanceState.RESTARTING:
        
        
        return True
    if not getattr(task_instance, "task", None):
        
        return task_instance.try_number <= task_instance.max_tries
    return task_instance.task.retries and task_instance.try_number <= task_instance.max_tries
def _handle_failure(