NamanSinghai opened a new pull request, #66276:
URL: https://github.com/apache/airflow/pull/66276

   Adds `airflowctl tasks clear`, backed by the public REST API endpoint:
   
   `POST /api/v2/dags/{dag_id}/clearTaskInstances`
   
   The command supports dag-run scoped task clearing with optional task IDs, 
failed/running filters, upstream/downstream inclusion, and dry-run mode.
   
   Closes #66176
   
   ## Tests
   - `uv run --project airflow-ctl pytest 
airflow-ctl/tests/airflow_ctl/ctl/commands/test_task_command.py -xvs`
   - `ruff format --check 
airflow-ctl/src/airflowctl/ctl/commands/task_command.py 
airflow-ctl/src/airflowctl/ctl/cli_config.py 
airflow-ctl/tests/airflow_ctl/ctl/commands/test_task_command.py`
   - `ruff check airflow-ctl/src/airflowctl/ctl/commands/task_command.py 
airflow-ctl/src/airflowctl/ctl/cli_config.py 
airflow-ctl/tests/airflow_ctl/ctl/commands/test_task_command.py`
   - `git diff --check`
   
   ---
   
   ### Was generative AI tooling used to co-author this PR?
   
   - [X] Yes


-- 
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