You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "anmolxlight (via GitHub)" <gi...@apache.org> on 2026/05/27 08:02:08 UTC
[PR] feat(ui): Add option to re-run only skipped tasks from the UI [airflow]
anmolxlight opened a new pull request, #67594:
URL: https://github.com/apache/airflow/pull/67594
## Summary
Adds a new "Only Skipped" option in the Clear Run dialog alongside the existing "Only Failed" and "Queue New" options. When selected, only task instances in the `skipped` state are cleared and re-run.
Closes #67464
## Changes
### Backend
- `SerializedDAG.clear()` — added `only_skipped` parameter (to all overloads + implementation). Validates mutual exclusivity with `only_new`. Filters for `TaskInstanceState.SKIPPED`.
- `SerializedDAG.clear_dags()` — passes `only_skipped` through.
- `DAGRunClearBody` — added `only_skipped: bool = False` field.
- `ClearTaskInstancesBody` — added `only_skipped: bool = False` field.
- `clear_dag_run()` route — dry_run filtering and pass-through for `only_skipped`.
- `clear_task_instances()` route — pass-through for `only_skipped`.
### CLI
- Added `--only-skipped` argument to both `airflow dags clear` and `airflow tasks clear`.
### UI
- `ClearRunDialog.tsx` — "Only Skipped" option in the SegmentedControl, wired to `only_skipped` in both dry-run and mutate request bodies.
- `en/dags.json` — added translation key `onlySkipped`.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] feat(ui): Add option to re-run only skipped tasks from the UI [airflow]
Posted by "potiuk (via GitHub)" <gi...@apache.org>.
potiuk commented on PR #67594:
URL: https://github.com/apache/airflow/pull/67594#issuecomment-4566729516
@anmolxlight A few things need addressing before review — see our [Pull Request quality criteria](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#pull-request-quality-criteria).
- :x: **Pre-commit / static checks**. See [docs](https://github.com/apache/airflow/blob/main/contributing-docs/08_static_code_checks.rst).
No rush.
---
_Note: This comment was drafted by an AI-assisted triage tool and may contain mistakes. Once you have addressed the points above, an Apache Airflow maintainer — a real person — will take the next look at your PR. We use this [two-stage triage process](https://github.com/apache/airflow/blob/main/contributing-docs/25_maintainer_pr_triage.md#why-the-first-pass-is-automated) so that our maintainers' limited time is spent where it matters most: the conversation with you._
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] feat(ui): Add option to re-run only skipped tasks from the UI [airflow]
Posted by "bbovenzi (via GitHub)" <gi...@apache.org>.
bbovenzi commented on code in PR #67594:
URL: https://github.com/apache/airflow/pull/67594#discussion_r3337071140
##########
airflow-core/src/airflow/ui/src/components/Clear/Run/ClearRunDialog.tsx:
##########
Review Comment:
Would you mind adding some frontend validation?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] feat(ui): Add option to re-run only skipped tasks from the UI [airflow]
Posted by "pierrejeambrun (via GitHub)" <gi...@apache.org>.
pierrejeambrun commented on code in PR #67594:
URL: https://github.com/apache/airflow/pull/67594#discussion_r3396164399
##########
airflow-core/src/airflow/api_fastapi/core_api/datamodels/dag_run.py:
##########
@@ -80,6 +81,8 @@ def validate_model(cls, data: Any) -> Any:
"""Validate clear Dag run form."""
if data.get("only_new") and data.get("only_failed"):
raise ValueError("only_new and only_failed are mutually exclusive")
+ if data.get("only_new") and data.get("only_skipped"):
+ raise ValueError("only_new and only_skipped are mutually exclusive")
Review Comment:
Should we guard for "only_failed" and "only_skipped" being mutually exclusive.
Since in `airflow-core/src/airflow/serialization/definitions/dag.py` state are additive, this will actually clear both `failed` and `skipped` not respecting the `only_state` parameter.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] feat(ui): Add option to re-run only skipped tasks from the UI [airflow]
Posted by "potiuk (via GitHub)" <gi...@apache.org>.
potiuk closed pull request #67594: feat(ui): Add option to re-run only skipped tasks from the UI
URL: https://github.com/apache/airflow/pull/67594
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] feat(ui): Add option to re-run only skipped tasks from the UI [airflow]
Posted by "ashb (via GitHub)" <gi...@apache.org>.
ashb commented on PR #67594:
URL: https://github.com/apache/airflow/pull/67594#issuecomment-4681418509
Does this actually work. Please show a screen recording of it, and that the tasks aren't just skipped again.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org