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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to