tjhub1983 commented on PR #66218:
URL: https://github.com/apache/airflow/pull/66218#issuecomment-4380571492

   @parkhojeong Thanks for the review! I've addressed all your suggestions:
   
   1. **Removed  class** — now using  and  directly, consistent with the 
existing  API pattern
   2. ** now accepts ** — follows the same pattern as other operations like 
   3. ** is now split from comma-separated string** —  is applied before 
passing to 
   
   The updated code:
   
   ```python
   task_ids = getattr(args, "task_ids", None)
   if task_ids:
       task_ids = task_ids.split(",")
   
   body = ClearTaskInstancesBody(
       dry_run=getattr(args, "dry_run", False) or False,
       only_failed=getattr(args, "only_failed", True) or True,
       ...
       task_ids=task_ids,
       ...
   )
   cleared = api_client.client.tasks.clear(dag_id=args.dag_id, body=body)
   ```
   
   The test has also been updated to use .


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