You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Include debug information in more dagbag warnings #33853
Add dag/file information to RemovedInAirflow3Warning, UserWarning, and AirflowProviderDeprecationWarning, so that a user can tell where to go to fix the issue.
Use case/motivation
Some of the RemovedInAirflow3Warnings and UserWarnings aren't actionable because i have no idea what dag they are referring to, such as:
RemovedInAirflow3Warning: The use of non-json-serializable params is deprecated and will be removed in a future release
AirflowProviderDeprecationWarning: This module is deprecated. Please use airflow.providers.cncf.kubernetes.operators.pod instead. (this one i could take an educated guess and search for pod imports, but many users wouldn't)
Some, like
UserWarning: The parameter waiter_countdown has been deprecated to standardize naming conventions. Please use waiter_max_attempts instead. In the future this will default to None and defer to the waiter's default value.
RemovedInAirflow3Warning: none_failed_or_skipped Trigger Rule is deprecated. Please use none_failed_min_one_success.
are ok because i can at least search our codebase for those keywords, but they would still be more fixable with debug info.
But even of those, its hard to find at times: for instance, when getting RemovedInAirflow3Warning: airflow.operators.python.task is deprecated. Please use the following instead there is no string i can search for without using regexes or using an IDE to find uses of the function.
Unfortunately i do know this would likely be a case-by-case fix.
This is not meant to discourage your contribution — quite the opposite! You are still very welcome to work on this issue and submit a PR for it. Simply comment that you are working on it and open a PR when ready.
We found that formal assignments were not working well, as they often prevented others from contributing when the assignee was not actively working on the issue.
HI, I'm going to take a look at this one and trace where the warning handler intercepts these inside dagbag.py to append the file context. I'll spin up Breeze and open a PR once the unit tests pass.
Activity
potiuk commentedon Sep 1, 2023
Yep. Marked as "good first issue"
tsafacjo commentedon Nov 1, 2023
can I take this issue ?
potiuk commentedon Nov 1, 2023
Feel free.
potiuk commentedon Mar 2, 2026
@tsafacjo We are unassigning you from this issue as part of our updated assignment policy.
This is not meant to discourage your contribution — quite the opposite! You are still very welcome to work on this issue and submit a PR for it. Simply comment that you are working on it and open a PR when ready.
We found that formal assignments were not working well, as they often prevented others from contributing when the assignee was not actively working on the issue.
MichaelChenGithub commentedon Apr 8, 2026
Hi @potiuk , I'd like to work on this!
mohsinsurani commentedon Jun 7, 2026
HI, I'm going to take a look at this one and trace where the warning handler intercepts these inside dagbag.py to append the file context. I'll spin up Breeze and open a PR once the unit tests pass.
shahar1 commentedon Nov 6, 2026
Solved by #73853