apache / apache/airflow

Support named mapping for task group

Open
#40,799 20 comments 27 reactions 0 assignees View on GitHub
area:dynamic-task-mapping kind:feature
Dominant language
Python
Stars
46.9k
Forks
17.8k
Avg merge
2d 10h
Merged PRs (30d)
483

Description

### Description

Currently, named mapping for dynamic tasks is supported through the map_index_template property. However, this feature is not available for task groups.

We would be happy to help with this issue, but we might need some guidance from the project's mentors.

### Use case/motivation

We would like to have labels instead of index on all tasks within the dynamic task group

### Related issues

_No response_

### Are you willing to submit a PR?

- [ ] Yes I am willing to submit a PR!

### Code of Conduct

- [X] I agree to follow this project's [Code of Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)

Contributor guide

Open the contributing guide

Research direction

Start by tracing the existing dynamic-task support for the map_index_template property, then compare it with task-group handling. The work is done when named mapping is supported for task groups so every task uses the requested labels instead of numeric indexes; the issue does not name specific files or tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data-engineering
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.