apache / apache/airflow

Decorator for Task Flow (@skip_if, @run_if) to make it simple to apply whether or not to skip a Task -> Implementation also for Task Groups

Open
#42,853 3 comments 0 reactions 0 assignees View on GitHub
airflow3.x candidate area:TaskGroup kind:feature
Dominant language
Python
Stars
46.9k
Forks
17.8k
Avg merge
2d 10h
Merged PRs (30d)
483

Description

### Description

It would be really helpful, if the new feature @skip_if and @run_if would be available also for whole TaskGroups. With that I would be able to easily toggle the computation of whole TaskGroups with a simple check.

### Use case/motivation

_No response_

### 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

The issue names the existing @skip_if and @run_if decorators and TaskGroup entry points, but no files or tests. Start by locating the decorator implementation and TaskGroup tests, then trace how conditional behavior is applied to individual tasks. Done means both decorators support whole TaskGroups with tests covering skipped and executed groups.

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.