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

   ### Apache Airflow version
   
   3.0.0
   
   ### If "Other Airflow 2 version" selected, which one?
   
   _No response_
   
   ### What happened?
   
   Running this dag:
   
   ```
   from airflow.sdk import Asset, dag, task, chain
   
   
   @dag
   def my_dag():
   
       @task(outlets=[Asset("my_asset")])
       def task_1():
           return "Task 1 completed"
   
       @task
       def task_2():
           return "Task 2 completed"
   
       chain(task_1(), task_2())
   
   
   my_dag()
   ```
   
   The asset is attached to task_2 instead of task_1 in the graph:
   
   
![Image](https://github.com/user-attachments/assets/55d11023-54e6-4c35-b523-ceced4a6393c)
   
   
   
   ### What you think should happen instead?
   
   In Airflow 2 the equivalent dag has the asset attached to task_1:
   
   
![Image](https://github.com/user-attachments/assets/07c5c026-68e1-49e1-8de1-8326010959c4)
   
   ### How to reproduce
   
   Run the dag, view the graph.
   
   ### Operating System
   
   MacOs
   
   ### Versions of Apache Airflow Providers
   
   breeze
   
   ### Deployment
   
   Other
   
   ### Deployment details
   
   breeze
   
   ### 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