apache / apache/airflow

Adding tags to DAG runs

Open
#43,472 14 comments 1 reaction 0 assignees View on GitHub
kind:feature
Dominant language
Python
Stars
46.9k
Forks
17.8k
Avg merge
2d 10h
Merged PRs (30d)
483

Description

### Description

Currently I see only option to tag DAGs. I don't see such an option for DAG runs.
It will be quite useful for me, to add and filter runs by tags.

### Use case/motivation

I'd like to filter runs based on tags. For example, I have different DAGs (predict, train, etc.) that I could tag with tags like 'model_name=mymodel', then I can see all runs that used that model.
This also gives the user a way to group dagruns based on keys like experiment=name, such management exists in other dag runners (e.g kubeflow)

### Related issues

_No response_

### Are you willing to submit a PR?

- [x] 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 how DAG tags are stored and exposed, then inspect the DAG-run listing and filtering paths. The work is done when DAG runs can receive tags such as model_name=mymodel or experiment=name and users can filter runs by those tags.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend, 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.