atul-astronomer opened a new issue, #53066:
URL: https://github.com/apache/airflow/issues/53066

   ### Apache Airflow version
   
   3.0.2
   
   ### If "Other Airflow 2 version" selected, which one?
   
   _No response_
   
   ### What happened?
   
   When user wants to clear a specific task, dailog box is showing all the 
tasks to be cleared.
   
   <img width="1645" height="729" alt="Image" 
src="https://github.com/user-attachments/assets/472fe863-337b-432d-a482-230490f2d1d2";
 />
   
   ### What you think should happen instead?
   
   _No response_
   
   ### How to reproduce
   
   Use the below Dag and make a dagrun, when dagrun is completed, select a task 
and try clearing it, dailog box should show only single task that we are trying 
to clear.
   
   ```python
   from airflow import AirflowException
   from airflow.sdk import DAG
   from airflow.decorators import task
   from airflow.providers.standard.operators.bash import BashOperator
   from airflow.exceptions import AirflowSkipException
   from datetime import datetime, timedelta
   
   with DAG(
       dag_id="expand_kwargs",
       doc_md="use expand_kwargs without a function",
       schedule=timedelta(days=30 * 365),
       start_date=datetime(1970, 1, 1),
       tags=["taskmap"]
   ) as expand_kwargs:
   
       @task
       def data():
           return [
               {"bash_command": "echo hello $USER", "env": {"USER": "foo"}},
               {"bash_command": "echo goodbye $USER", "env": {"USER": "bar"}},
           ]
   
       BashOperator.partial(task_id="two_tasks").expand_kwargs(data())
   ``` 
   
   ### Operating System
   
   Linux
   
   ### Versions of Apache Airflow Providers
   
   _No response_
   
   ### Deployment
   
   Other
   
   ### Deployment details
   
   _No response_
   
   ### Anything else?
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [x] I agree to follow this project's [Code of 
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
   


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