bugraoz93 opened a new issue, #66176:
URL: https://github.com/apache/airflow/issues/66176

   ### Body
   
   ## Summary
   
   Add `airflowctl tasks clear` to ctl/commands/task_command.py.
   Custom command in ctl/commands/ — wired via cli_config.py.
   
   ## Implementation
   
   - Add a task_clear function to ctl/commands/task_command.py.
   - Call POST /api/v2/dags/{dag_id}/dagRuns/{run_id}/clearTaskInstances 
directly.
   - Flags: --task-ids, --only-failed, --only-running, --upstream, 
--downstream, --dry-run.
   - Output via AirflowConsole().print_as(data=cleared_task_instances, 
output=args.output).
   - Wire as `airflowctl tasks clear --dag-id <id> --dag-run-id <run_id>` in 
cli_config.py.
   
   ### Committer
   
   - [x] I acknowledge that I am a maintainer/committer of the Apache Airflow 
project.


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