martijn-exads commented on issue #65745: URL: https://github.com/apache/airflow/issues/65745#issuecomment-4497401392
We're hitting the same behaviour on branch operators inside expand/expand_kwargs-mapped TaskGroups in 3.2.x — non-selected branch siblings run instead of being skipped, and #65751 does not address this case (it fixes relative branch IDs in non-mapped TaskGroups; our branches already return absolute IDs). We think we've traced it to #62287, specifically this line in NotPreviouslySkippedDep: ```xcom_map_index = ti.map_index if parent.is_mapped else -1``` For a branch operator inside a mapped @task_group, the operator itself has no .expand() so parent.is_mapped is False, but its TIs run with map_index >= 0 and SkipMixin writes XCOM_SKIPMIXIN_KEY at the parent TI's per-map map_index. The dep then queries map_indexes=-1, finds nothing, returns "not skipped", and the non-selected sibling proceeds. Let us know whether this should stay on this ticket or be split into a separate one, happy to open one if that's preferred. -- 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]
