ashb commented on a change in pull request #15467:
URL: https://github.com/apache/airflow/pull/15467#discussion_r625614142



##########
File path: airflow/ti_deps/deps/trigger_rule_dep.py
##########
@@ -134,8 +134,12 @@ def _evaluate_trigger_rule(  # pylint: 
disable=too-many-branches
                 if successes or skipped:
                     ti.set_state(State.SKIPPED, session)
             elif trigger_rule == TR.ONE_SUCCESS:
-                if upstream_done and not successes:
+                if upstream_done and done == skipped:
+                    # if upstream is done and all are skipped mark as skipped
                     ti.set_state(State.SKIPPED, session)
+                elif upstream_done and successes <= 0:

Review comment:
       Fair




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