Repository navigation
Closed
Labels
affected_version:3.1Issues Reported for 3.1area:UIRelated to UI/UX. For Frontend Developers.area:corearea:data-aware-schedulingassets, datasets, AIP-48, AIP-76, AIP-74, Asset Partitionskind:bugThis is a clearly a bug
Description
Apache Airflow version
3.1.2
If "Other Airflow 2/3 version" selected, which one?
No response
What happened?
When using DAGs that attach AssetAliases to outlets, the concrete asset is created by the producing task. AssetAliases associated to these dynamically created assets do not appear in the Assets tab of the UI, even when assets are attached via Metadata. The following example code demonstrates the issue:
from datetime import UTC, datetime
from airflow.providers.standard.operators.python import PythonOperator
from airflow.sdk import Asset, AssetAlias, Metadata, dag, task
first_alias = AssetAlias(name='a.first.data.alias',)
second_alias = AssetAlias(name='a.second.data.alias',)
@dag(schedule=None,tags=['test'],)
def test_alias_producer_dag():
def produce_asset():
yield Metadata(Asset(name='a.first.data.asset', uri='s3://bucket/mydata.csv', extra={'path': '/some/local/path.txt'},), {'timestamp': datetime.now(tz=UTC).isoformat()}, first_alias,)
PythonOperator(task_id='produce_asset', python_callable=produce_asset, outlets=[first_alias],)
@dag(schedule=[first_alias],tags=['test'],)
def test_alias_intermediate_dag():
@task(inlets=[first_alias], outlets=[second_alias])
def process_asset(inlet_events: dict[Asset | AssetAlias, list[Metadata]]):
events: list[Metadata] = inlet_events[first_alias]
for event in events:
print(f'Event: {event}')
yield Metadata(Asset(name='a.second.data.asset', uri='s3://bucket/otherdata.csv', extra={'path': '/some/other/local/path.txt'},), {'timestamp': datetime.now(tz=UTC).isoformat()}, second_alias,)
process_asset()
@dag(schedule=[second_alias],tags=['test'],)
def test_alias_consumer_dag():
@task(inlets=[second_alias])
def consume_asset(inlet_events: dict[Asset | AssetAlias, list[Metadata]]):
events: list[Metadata] = inlet_events[second_alias]
for event in events:
print(f'Event: {event}')
consume_asset()
test_alias_producer_dag()
test_alias_intermediate_dag()
test_alias_consumer_dag()Observed behavior:
- The dynamically attached Asset is correctly produced.
- The AssetAlias used as outlet and the Assets itself do NOT appear as an asset in the 'Assets' tab at all.
- This seems to affect all dynamically produced assets that use AssetAlias via Metadata.
What you think should happen instead?
Expectation: The AssetAlias should appear in the assets tab.
How to reproduce
See example DAG code in previous sections. To reproduce:
- Define DAG with dynamic assets and attach AssetAlias via Metadata/outlets as in example above
- Run the DAG; ensure that asset events are produced with AssetAlias and dynamically generated Asset
- Check the Asset Events are created in the Task view.
- The attached AssetAlias (e.g. 'a.first.data.alias') does NOT appear in the assets tab.
Operating System
docker compose
Versions of Apache Airflow Providers
No response
Deployment
Docker-Compose
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
- I agree to follow this project's Code of Conduct
Reacted by Pavel, mikolajszymczak, Jacopo Nespolo, Javier Santos and Matthew Gerrior
Metadata
Metadata
Assignees
Labels
affected_version:3.1Issues Reported for 3.1area:UIRelated to UI/UX. For Frontend Developers.area:corearea:data-aware-schedulingassets, datasets, AIP-48, AIP-76, AIP-74, Asset Partitionskind:bugThis is a clearly a bug
Activity
jacopo-exact commentedon Jan 17, 2026
I'm also affected by this issue, using Airflow 3.1.6. CLI correctly shows AssetAlias but asset tab in web UI remains empty.
Activate assets materialized from an AssetAlias so they appear in the…
Activate assets materialized from an AssetAlias so they appear in the…
Activate assets materialized from an AssetAlias so they appear in the…
Activate assets materialized from an AssetAlias so they appear in the…