uranusjr commented on code in PR #27827:
URL: https://github.com/apache/airflow/pull/27827#discussion_r1029994793
##########
airflow/ti_deps/deps/trigger_rule_dep.py:
##########
@@ -81,44 +82,18 @@ def _get_dep_statuses(
session: Session,
dep_context: DepContext,
) -> Iterator[TIDepStatus]:
- # Checking that all upstream dependencies have succeeded
- if not ti.task.upstream_list:
+ # Checking that all upstream dependencies have succeeded.
+ if not ti.task.upstream_task_ids:
Review Comment:
Minor optimisation: `upstream_list` is a dynamic property, while
`upstream_task_ids` is a static set.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]