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
I am sure this is my fault, but it would be nice if this warning included the dag, or at least the file, so i would have more of an idea where it is happening.
Use case / motivation
Would make debugging easier.
As I understand, we just need to extend the add_only_new function with one more input parameter dag and add then the third argument to the warning message there: self.log.warning('Dependency %s, %s already registered', self, item).
All changes are in the baseoperator.py file.
The warning message was extended with dag_id to be more informative.
The respective changes were implemented and merged according to the PR #14860.
Please consider whether this issue can be closed now.
Thank you.
Activity
mik-laj commentedon Mar 6, 2021
what version of Airflow do you use?
fjmacagno commentedon Mar 6, 2021
2.0.1
Goodkat commentedon Mar 14, 2021
As I understand, we just need to extend the add_only_new function with one more input parameter dag and add then the third argument to the warning message there: self.log.warning('Dependency %s, %s already registered', self, item).
All changes are in the baseoperator.py file.
Update baseoperator.py
Goodkat commentedon Mar 24, 2021
Can someone assign this to me, since I am already working on it as per the PR #14860?
Thank you.
XD-DENG commentedon Mar 24, 2021
Hi @Goodkat , here you go :)
Better "dependency already registered" warning message for tasks #14613…
Goodkat commentedon Apr 19, 2021
The warning message was extended with dag_id to be more informative.
The respective changes were implemented and merged according to the PR #14860.
Please consider whether this issue can be closed now.
Thank you.
fjmacagno commentedon Apr 19, 2021
Solution looks good, ill test it once it is released.
fjmacagno commentedon Feb 17, 2022
BTW Changes look great, it just took forever to get us migrated to a newer version of Airflow. Thanks!