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



##########
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:
       I don't think it's necessary more than an entry in the `UPDATING.md`. 
The only situation where you will have multiple counts is when the 
`execution_date_fn` returns more than one execution date to wait for. However, 
the original behavior will get you into a weird state when only part of the TIs 
fail, i.e. one fail and one succeeds, resulting in time out. IMHO, I would 
consider this as a bug




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