TJaniF commented on issue #48711:
URL: https://github.com/apache/airflow/issues/48711#issuecomment-2773752151
Adding a `uri` element to the asset in the outlet fixes it for that asset.
so this:
```
from airflow.sdk import dag, Asset
from airflow.decorators import task
@dag(schedule="@daily") # A
def extracted_data(): # B
@task(outlets=[Asset("extracted_data")]) # C
def my_task():
print("Hello World")
my_task()
extracted_data()
@dag(schedule=[Asset("extracted_data")]) # D
def transformed_data():
@task(outlets=[Asset("transformed_data")]) # C
def my_task():
print("Hello World")
my_task()
transformed_data()
@dag(schedule=[Asset("transformed_data")]) # D
def loaded_data():
@task(outlets=[Asset("loaded_data", uri="something")]) # C
def my_task():
print("Hello World")
my_task()
loaded_data()
```
works for clicking on the loaded_data asset
but not for the other 2 assets
--
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]