Skip to content

Add documentation on asset decorator#48426

Merged
uranusjr merged 1 commit intoapache:mainfrom
astronomer:ban-stars-on-asset
Mar 27, 2025
Merged

Add documentation on asset decorator#48426
uranusjr merged 1 commit intoapache:mainfrom
astronomer:ban-stars-on-asset

Conversation

@uranusjr
Copy link
Member

Since assets are now used for (a little) more than scheduling, I split the authoring part into a separate document. Usages with the decorator are added.

I also added a simple check to ban * and ** at PARSE TIME on asset decorators since they don't make much sense. It's better to fail early here since it's too easy to accidentally use the wrong syntax carried over from the task decorator.

Close #48411.

@uranusjr uranusjr force-pushed the ban-stars-on-asset branch 2 times, most recently from e9b2464 to 65a8595 Compare March 27, 2025 03:35
Since assets are now used for (a little) more than scheduling, I split
the authoring part into a separate document. Usages with the decorator
are added.

I also added a simple check to ban * and ** at PARSE TIME on asset
decorators since they don't make much sense. It's better to fail early
here since it's too easy to accidentally use the wrong syntax carried
over from the task decorator.
@uranusjr uranusjr force-pushed the ban-stars-on-asset branch from 65a8595 to 78a0b2d Compare March 27, 2025 04:51
@uranusjr uranusjr merged commit 03506fe into apache:main Mar 27, 2025
61 checks passed
@uranusjr uranusjr deleted the ban-stars-on-asset branch March 27, 2025 09:28
pankajkoti pushed a commit to astronomer/airflow that referenced this pull request Mar 28, 2025
Since assets are now used for (a little) more than scheduling, I split
the authoring part into a separate document. Usages with the decorator
are added.

I also added a simple check to ban * and ** at PARSE TIME on asset
decorators since they don't make much sense. It's better to fail early
here since it's too easy to accidentally use the wrong syntax carried
over from the task decorator.
shubham-pyc pushed a commit to shubham-pyc/airflow that referenced this pull request Apr 2, 2025
Since assets are now used for (a little) more than scheduling, I split
the authoring part into a separate document. Usages with the decorator
are added.

I also added a simple check to ban * and ** at PARSE TIME on asset
decorators since they don't make much sense. It's better to fail early
here since it's too easy to accidentally use the wrong syntax carried
over from the task decorator.
nailo2c pushed a commit to nailo2c/airflow that referenced this pull request Apr 4, 2025
Since assets are now used for (a little) more than scheduling, I split
the authoring part into a separate document. Usages with the decorator
are added.

I also added a simple check to ban * and ** at PARSE TIME on asset
decorators since they don't make much sense. It's better to fail early
here since it's too easy to accidentally use the wrong syntax carried
over from the task decorator.
simonprydden pushed a commit to simonprydden/airflow that referenced this pull request Apr 8, 2025
Since assets are now used for (a little) more than scheduling, I split
the authoring part into a separate document. Usages with the decorator
are added.

I also added a simple check to ban * and ** at PARSE TIME on asset
decorators since they don't make much sense. It's better to fail early
here since it's too easy to accidentally use the wrong syntax carried
over from the task decorator.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[3.0.0] context dict for @asset erroneously requires additional ["context"] key

2 participants