Skip to content

Allow accessing a TaskGroup's members via []#64430

Open
Dev-iL wants to merge 1 commit intoapache:mainfrom
Dev-iL:2603/taskgroup_getitem
Open

Allow accessing a TaskGroup's members via []#64430
Dev-iL wants to merge 1 commit intoapache:mainfrom
Dev-iL:2603/taskgroup_getitem

Conversation

@Dev-iL
Copy link
Copy Markdown
Collaborator

@Dev-iL Dev-iL commented Mar 29, 2026

Minor feature (syntactic sugar): we can now do e.g. some_group["some_task"] to access the children of a task group regardless of the prefix_group_id setting.

Motivation: Discussion in AIR201's PR that made me aware that the shortest way to access child references is not that short - so I made it shorter and more natural (at least to me).


Was generative AI tooling used to co-author this PR?
  • Yes (please specify the tool below)

  • Read the Pull Request Guidelines for more information. Note: commit author/co-author name and email in commits become permanently public when merged.
  • For fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
  • When adding dependency, check compliance with the ASF 3rd Party License Policy.
  • For significant user-facing changes create newsfragment: {pr_number}.significant.rst, in airflow-core/newsfragments. You can add this file in a follow-up commit after the PR is created so you know the PR number.

Copy link
Copy Markdown
Member

@potiuk potiuk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but likely @uranusjr would be good to take a look

@Dev-iL Dev-iL requested a review from uranusjr March 29, 2026 21:59
@eladkal eladkal added this to the Airflow 3.2.1 milestone Mar 29, 2026
@kaxil kaxil requested a review from Copilot April 2, 2026 00:42
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Copy link
Copy Markdown
Contributor

@eladkal eladkal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM
cc @uranusjr as you are most familiar with this area

@eladkal eladkal force-pushed the 2603/taskgroup_getitem branch from ff95538 to 789b3f7 Compare April 13, 2026 16:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants