Skip to content

feat(ui): Add option to re-run only skipped tasks from the UI#67594

Open
anmolxlight wants to merge 4 commits into
apache:mainfrom
anmolxlight:feat/rerun-skipped-tasks-67464
Open

feat(ui): Add option to re-run only skipped tasks from the UI#67594
anmolxlight wants to merge 4 commits into
apache:mainfrom
anmolxlight:feat/rerun-skipped-tasks-67464

Conversation

@anmolxlight
Copy link
Copy Markdown
Contributor

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.

anmolxlight 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.
@anmolxlight anmolxlight force-pushed the feat/rerun-skipped-tasks-67464 branch from 788f8d1 to 39288fc Compare May 27, 2026 10:32
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.
@potiuk
Copy link
Copy Markdown
Member

potiuk commented May 28, 2026

@anmolxlight A few things need addressing before review — see our Pull Request quality criteria.

  • Pre-commit / static checks. See docs.

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:API Airflow's REST/HTTP API area:CLI area:DAG-processing area:translations area:UI Related to UI/UX. For Frontend Developers. translation:default

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Ability to Re-run Only Skipped Tasks from Airflow UI

2 participants