Skip to content

Set downstream option to default on task instance clear #52130

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jun 25, 2025

Conversation

humit0
Copy link
Contributor

@humit0 humit0 commented Jun 24, 2025

While Airflow 2 provided "Downstream" and "Recursive" as default options for clearing task instances,
Airflow 3.0.2 does not offer a pre-defined default for this functionality.

As a result, I have established "Downstream" as the default option for clearing task instances.

clear-task.mp4

^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in airflow-core/newsfragments.

@boring-cyborg boring-cyborg bot added the area:UI Related to UI/UX. For Frontend Developers. label Jun 24, 2025
@humit0
Copy link
Contributor Author

humit0 commented Jun 24, 2025

If no default value (when clearing task instance) is intended, feel free to close this issue!

@pierrejeambrun pierrejeambrun added this to the Airflow 3.0.3 milestone Jun 24, 2025
Copy link
Member

@pierrejeambrun pierrejeambrun left a comment

Choose a reason for hiding this comment

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

I think we can do the same for marking a TI as failed or success, to keep behavior consistent.

@humit0
Copy link
Contributor Author

humit0 commented Jun 24, 2025

@pierrejeambrun Thank you for suggesting! I will check marking TI behavior, and do update it tomorrow.

@humit0
Copy link
Contributor Author

humit0 commented Jun 25, 2025

In Airlfow 2.10.3, there is no default enabled option when marking success/failed TI.

Copy link
Member

@pierrejeambrun pierrejeambrun left a comment

Choose a reason for hiding this comment

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

Thanks

@pierrejeambrun pierrejeambrun added the backport-to-v3-0-test Mark PR with this label to backport to v3-0-test branch label Jun 25, 2025
@pierrejeambrun pierrejeambrun merged commit c31146a into apache:main Jun 25, 2025
52 checks passed
github-actions bot pushed a commit that referenced this pull request Jun 25, 2025
…52130)

* Set downstream default when clear task instance

* Set downstream default when mark TI success or failed
(cherry picked from commit c31146a)

Co-authored-by: humit <[email protected]>
Copy link

Backport successfully created: v3-0-test

Status Branch Result
v3-0-test PR Link

github-actions bot pushed a commit to aws-mwaa/upstream-to-airflow that referenced this pull request Jun 25, 2025
…pache#52130)

* Set downstream default when clear task instance

* Set downstream default when mark TI success or failed
(cherry picked from commit c31146a)

Co-authored-by: humit <[email protected]>
pierrejeambrun pushed a commit that referenced this pull request Jun 25, 2025
…52130) (#52246)

* Set downstream default when clear task instance

* Set downstream default when mark TI success or failed
(cherry picked from commit c31146a)

Co-authored-by: humit <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:UI Related to UI/UX. For Frontend Developers. backport-to-v3-0-test Mark PR with this label to backport to v3-0-test branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants