Skip to content
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

[openlineage] Add error stacktrace to task fail event #39813

Merged
merged 1 commit into from
May 29, 2024

Conversation

kacpermuda
Copy link
Contributor

@kacpermuda kacpermuda commented May 24, 2024

Thanks to #38155, starting from Airflow 2.10 listener will start receiving error in on_task_instance_failed(). This PR adjust OpenLineage listener to attach this information using ErrorMessageRunFacet. As mentioned here, these changes in the code are required if we want to maintain the listener compatibility with previous Airflow versions as well.

Also adjusting tests and removing one test that did not serve any purpose, as we mocked all the Airflow behaviour.


^ 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 newsfragments.

@kacpermuda kacpermuda force-pushed the ol-add-error-to-task-event branch 3 times, most recently from ac64540 to c1be45c Compare May 27, 2024 14:02
@kacpermuda kacpermuda marked this pull request as ready for review May 27, 2024 14:19
@kacpermuda kacpermuda requested a review from mobuchowski as a code owner May 27, 2024 14:19
@kacpermuda kacpermuda force-pushed the ol-add-error-to-task-event branch from c1be45c to 989e07a Compare May 28, 2024 13:18
@mobuchowski mobuchowski self-requested a review May 29, 2024 11:29
@mobuchowski mobuchowski merged commit aba8def into apache:main May 29, 2024
57 checks passed
@kacpermuda kacpermuda deleted the ol-add-error-to-task-event branch May 29, 2024 11:33
fdemiane pushed a commit to fdemiane/airflow that referenced this pull request Jun 6, 2024
romsharon98 pushed a commit to romsharon98/airflow that referenced this pull request Jul 26, 2024
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.

2 participants