Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for on_asset_* Listeners with Task SDK #45493

Open
Tracked by #45491
kaxil opened this issue Jan 8, 2025 · 0 comments
Open
Tracked by #45491

Add support for on_asset_* Listeners with Task SDK #45493

kaxil opened this issue Jan 8, 2025 · 0 comments

Comments

@kaxil
Copy link
Member

kaxil commented Jan 8, 2025

Part of #45491

Port https://airflow.apache.org/docs/apache-airflow/stable/administration-and-deployment/listeners.html#dataset-events to Task SDK.

@hookspec
def on_asset_created(asset: Asset):
"""Execute when a new asset is created."""
@hookspec
def on_asset_alias_created(asset_alias: AssetAlias):
"""Execute when a new asset alias is created."""
@hookspec
def on_asset_changed(asset: Asset):
"""Execute when asset change is registered."""

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant