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

   ## Why
   
   Follow-up in the #72941 review: an `airflow tasks clear` that matches 
nothing (a mistyped `--task-regex`, `--only-failed` with no failed tasks, an 
empty date range) exits 0 with no output, which looks the same as a successful 
clear. Airflow 2 printed `Nothing to clear.` in these cases; the message was 
dropped in #54383.
   
   ## What
   
   `task_clear` prints `Nothing to clear.` again, both when the dry run before 
the prompt finds nothing and when a `--yes` clear removes nothing. The exit 
code stays 0. `test_task_clear_reports_nothing_to_clear` covers both paths, 
plus a real clear that must stay silent.
   
   ---
   
   ##### Was generative AI tooling used to co-author this PR?
   
   - [X] Yes — Claude Code (Opus 5.5)
   
   Generated-by: Claude Code (Opus 5.5) following [the 
guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions)
   


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