Skip to content

Conversation

nrnavaneet
Copy link
Contributor

@nrnavaneet nrnavaneet commented Jun 25, 2025

This PR improves the documentation for AssetAlias in the authoring and scheduling assets guide.

  • Adds a clear introduction explaining what AssetAlias is and why it’s useful.
  • Provides step-by-step usage instructions for emitting asset events via outlet_events and Metadata.
  • Includes code examples with detailed comments for better understanding.
  • Clarifies behavior when using multiple aliases and event deduplication.
  • Adds guidance on consuming asset events from aliases in downstream tasks.

These improvements aim to help users better understand and effectively use AssetAlias for dynamic asset management and DAG dependency configuration.

Closes: #52250

nrnavaneet and others added 3 commits June 25, 2025 04:10
- Added a note under "Using Airflow Public Interfaces" to recommend using `airflow.sdk` as the official interface from Airflow 3.0.
- Referenced AIP-72 and linked related documentation.
- Encouraged users to prefer REST API and Python Client for integrations.
@@ -28,6 +28,21 @@ and for automating certain aspects of the Airflow workflow.
Using Airflow Public Interfaces
===============================

.. note::

As of **Airflow 3.0**, users should use the ``airflow.sdk`` namespace as the official **Public Interface**, as defined in `AIP-72 <https://cwiki.apache.org/confluence/display/AIRFLOW/AIP-72+Task+Execution+Interface+aka+Task+SDK>`_.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the motivation to mention AIP-72? Generally speaking AIP numbering is internal information of Airflow developers they are not so meaningful to users (we do mention them sometimes but mostly for future plans not as reference to completed work)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This entire file is also being reworked as part of #52297 by @sunank200

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah cool
so if it suppress this PR lets close it?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yea

Comment on lines +43 to +44
- `Release Notes 3.0 <https://airflow.apache.org/docs/apache-airflow/stable/release_notes.html>`_
- `Task SDK Overview <https://airflow.apache.org/docs/apache-airflow/stable/concepts/taskflow.html>`_
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be relative links rather than http ones. We use http only for external resources

@eladkal eladkal requested review from kaxil and cmarteepants July 3, 2025 18:08
@eladkal eladkal added this to the Airflow 3.0.4 milestone Jul 3, 2025
@eladkal eladkal requested a review from RNHTTR July 3, 2025 18:09
@eladkal eladkal added the type:doc-only Changelog: Doc Only label Jul 3, 2025
@kaxil
Copy link
Member

kaxil commented Jul 3, 2025

Superseded by #52297

@kaxil kaxil closed this Jul 3, 2025
@nrnavaneet nrnavaneet deleted the improve-assetalias-docs branch July 17, 2025 20:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Docs on AssetAlias are confusing
3 participants