Skip to content

chore: use task_instance as source for all airflow identifiers used in OL listener #52339

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 27, 2025

Conversation

kacpermuda
Copy link
Contributor

@kacpermuda kacpermuda commented Jun 27, 2025

Switch to using ti.dag_id over dag.dag_id and ti.task_id over task.task_id. It came out recently in #52334, as it turns out ti.task_id should be the correct one more often.

Also adjusting tests for manual_state_change as they did not caught that I broke it in my last PR.


^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in airflow-core/newsfragments.

@eladkal
Copy link
Contributor

eladkal commented Jun 27, 2025

Partially caused by #52334

is this the right link? it's an issue not a pr.

@kacpermuda
Copy link
Contributor Author

kacpermuda commented Jun 27, 2025

is this the right link? it's an issue not a pr.

Yes, it's Airflow core bug but it's influencing OpenLineage job naming in OL events, as we're using task.task_id in some places.

@kacpermuda kacpermuda changed the title chore: use task_instance as source for all airflow identifiers used in listener chore: use task_instance as source for all airflow identifiers used in OL listener Jun 27, 2025
@mobuchowski mobuchowski merged commit 8c86c5e into apache:main Jun 27, 2025
70 checks passed
@kacpermuda kacpermuda deleted the chore-ol-use-ti-task-id branch June 27, 2025 15:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants