uranusjr commented on a change in pull request #16167:
URL: https://github.com/apache/airflow/pull/16167#discussion_r643318904
##########
File path: airflow/models/taskinstance.py
##########
@@ -864,12 +864,14 @@ def are_dependencies_met(self, dep_context=None,
session=None, verbose=False):
for dep_status in
self.get_failed_dep_statuses(dep_context=dep_context, session=session):
failed = True
- verbose_aware_logger(
- "Dependencies not met for %s, dependency '%s' FAILED: %s",
- self,
- dep_status.dep_name,
- dep_status.reason,
- )
+ if self.state != State.RUNNING:
+ # Only log about dependencies for non-running tasks.
+ verbose_aware_logger(
+ "Dependencies not met for %s, dependency '%s' FAILED: %s",
+ self,
+ dep_status.dep_name,
+ dep_status.reason,
+ )
Review comment:
I feel we should still log something here, a running state is still
dependency not met, it’s just the previous messasge is confusing.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]