Skip to content

Airflow 3 operator_extra_links do not appear on failed tasks #57545

@tomchm

Description

@tomchm

Apache Airflow version

3.1.1

If "Other Airflow 2/3 version" selected, which one?

No response

What happened?

If a task fails, it seems that the operator_extra_links are not evaluated and pushed via xcoms. Therefore, buttons do not appear for failed tasks which was quite a useful feature in Airflow 2.

What you think should happen instead?

Airflow 2 buttons appeared regardless of the state of the task. This was useful for linking to debugging dashboards or other interactions.

How to reproduce

First, create a task that has an operator_extra_links defined on it. Then either cause the task to fail by having it throw an exception or manually mark its status as failed via the Airflow UI.

Operating System

Debian GNU/Linux 12 (bookworm)

Versions of Apache Airflow Providers

"apache-airflow-providers-amazon == 9.16.0"
"apache-airflow-providers-cncf-kubernetes == 10.9.0",

Deployment

Astronomer

Deployment details

Runs tasks via AWS EksPodOperators.

Anything else?

No logs. This happens for every failed task.

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions