You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "ephraimbuddy (via GitHub)" <gi...@apache.org> on 2023/09/14 10:17:00 UTC
[GitHub] [airflow] ephraimbuddy commented on a diff in pull request #34337: Fix pre-mature evaluation of tasks in mapped task group
ephraimbuddy commented on code in PR #34337:
URL: https://github.com/apache/airflow/pull/34337#discussion_r1325731285
##########
airflow/ti_deps/deps/trigger_rule_dep.py:
##########
@@ -146,6 +146,11 @@ def _get_relevant_upstream_map_indexes(upstream_id: str) -> int | range | None:
expanded_ti_count = _get_expanded_ti_count()
except (NotFullyPopulated, NotMapped):
return None
+ if ti.map_index < 0:
Review Comment:
From this https://github.com/apache/airflow/blob/1b26cc05ff553685c50a15f56a954e465ed43478/airflow/ti_deps/deps/trigger_rule_dep.py#L128, it seems like it's the `supposed` number it could expand into but I think this case is because the group has expanded but the task hasn't?
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org