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

Capture warnings during collect DAGs #39109

Merged
merged 4 commits into from
Apr 22, 2024

Conversation

Taragolis
Copy link
Contributor

Base implementation for capture warnings during collect DAGs during filling DAG bag.
This information not always printed into the logs or it hard to find and depends on the deployments settings.


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

@potiuk
Copy link
Member

potiuk commented Apr 18, 2024

Should not we also re-raise warnings in this case? What happens if someone relies on those warnings raised?

@Taragolis
Copy link
Contributor Author

Good point, I will add explicit re-raise in case if it found warnings

airflow/models/dagbag.py Outdated Show resolved Hide resolved
Taragolis and others added 2 commits April 19, 2024 12:36
Co-authored-by: Tzu-ping Chung <uranusjr@gmail.com>
Copy link
Member

@hussein-awala hussein-awala left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@potiuk potiuk merged commit 0d9d8fa into apache:main Apr 22, 2024
42 checks passed
@utkarsharma2 utkarsharma2 added the type:misc/internal Changelog: Misc changes that should appear in change log label Jun 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:misc/internal Changelog: Misc changes that should appear in change log
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants