Skip to content

AssetAliases are not shown in assets tab #58058

Closed

Description

@jgoedeke

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:

  1. Define DAG with dynamic assets and attach AssetAlias via Metadata/outlets as in example above
  2. Run the DAG; ensure that asset events are produced with AssetAlias and dynamically generated Asset
  3. Check the Asset Events are created in the Task view.
  4. 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

Activity

  1. added
    kind:bug
    needs-triage
    on Nov 7, 2025
  2. added
    area:UI
    on Nov 7, 2025
  3. added
    affected_version:3.1
    area:data-aware-scheduling
    and removed
    needs-triage
    on Nov 12, 2025
  4. jacopo-exact commented on Jan 17, 2026

    @jacopo-exact

    I'm also affected by this issue, using Airflow 3.1.6. CLI correctly shows AssetAlias but asset tab in web UI remains empty.

  5. self-assigned this
    on Jul 15, 2026
  6. added a commit that references this issue on Aug 13, 2026
    6b8c60e
  7. added 2 commits that reference this issue on Aug 20, 2026
    32f8527
    1fce547
  8. added a commit that references this issue on Sep 7, 2026
    13f1807
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

affected_version:3.1area:UIarea:corearea:data-aware-schedulingkind:bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions