feat(ui): Add option to re-run only skipped tasks from the UI#67594
Open
anmolxlight wants to merge 6 commits into
Open
feat(ui): Add option to re-run only skipped tasks from the UI#67594anmolxlight wants to merge 6 commits into
anmolxlight wants to merge 6 commits into
Conversation
added 3 commits
May 27, 2026 10:29
Closes apache#67464 Adds an 'only_skipped' parameter throughout the codebase, allowing users to selectively clear and re-run only skipped task instances from the Clear Run dialog in the UI, or via the CLI with --only-skipped.
788f8d1 to
39288fc
Compare
The only_skipped field was added to DAGRunClearBody and ClearTaskInstancesBody Python models but the OpenAPI spec and generated TypeScript types were stale, causing tsc errors in CI. Regenerated both to include only_skipped.
Member
|
@anmolxlight A few things need addressing before review — see our Pull Request quality criteria.
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 so that our maintainers' limited time is spent where it matters most: the conversation with you. |
added 2 commits
May 28, 2026 19:10
…odels The only_skipped field was placed before only_running in the OpenAPI spec for ClearTaskInstancesBody, breaking alphabetical field ordering. Also, the only_skipped field was missing from the generated AirflowCTL Python datamodels for both ClearTaskInstancesBody and DAGRunClearBody. - Move only_skipped after only_running in v2-rest-api-generated.yaml - Add only_skipped to ClearTaskInstancesBody and DAGRunClearBody in generated.py
The TypeScript generated types (schemas.gen.ts, types.gen.ts) had only_skipped before only_running, which doesn't match the OpenAPI spec field ordering after the YAML fix. Swap them to match.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
skippedstate are cleared and re-run.Closes #67464
Changes
Backend
SerializedDAG.clear()— addedonly_skippedparameter (to all overloads + implementation). Validates mutual exclusivity withonly_new. Filters forTaskInstanceState.SKIPPED.SerializedDAG.clear_dags()— passesonly_skippedthrough.DAGRunClearBody— addedonly_skipped: bool = Falsefield.ClearTaskInstancesBody— addedonly_skipped: bool = Falsefield.clear_dag_run()route — dry_run filtering and pass-through foronly_skipped.clear_task_instances()route — pass-through foronly_skipped.CLI
--only-skippedargument to bothairflow dags clearandairflow tasks clear.UI
ClearRunDialog.tsx— "Only Skipped" option in the SegmentedControl, wired toonly_skippedin both dry-run and mutate request bodies.en/dags.json— added translation keyonlySkipped.