xinbinhuang commented on a change in pull request #14640:
URL: https://github.com/apache/airflow/pull/14640#discussion_r603839218



##########
File path: airflow/sensors/external_task.py
##########
@@ -164,18 +184,23 @@ def poke(self, context, session=None):
         if self.failed_states:
             count_failed = self.get_count(dttm_filter, session, 
self.failed_states)
 
-        if count_failed == len(dttm_filter):
+        if count_failed > 0:

Review comment:
       Here I am making the assumption that as long as there is at least one 
external task failure, then we will want to fail the sensor. Though this 
changes the original behavior, I think this will be a better behavior?




-- 
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]


Reply via email to