-
Notifications
You must be signed in to change notification settings - Fork 14.8k
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
Asset event is not created for asset decorator Dag #46958
Comments
just verified it and it does not relates to the inlet event PR |
This is caused by an AssetRef is not currently handled correctly in the execution model, but the asset decorator uses AssetRef to define asset relationships between dags. So… many layers to fix—collecting events after execution, sending events with ref (not full assets) to the execution API, and resolving them in the scheduler. Going to take a while… |
The last time I tried, it worked fine with #47292. but yep, we still have many issue on the execution end |
I think #47292 is not enough if we go through the task sdk; it’d still fail since the execution api can’t serialise things correctly. |
just take a deeper look. The logic looks very wrong... asset_type handling is also incorrect |
I added yet another draft PR as a tmp workaround to make asset subclasses (including @ asset) works ok. #47598 |
Yeah I noticed that too. The way I changed it is to always just use |
If handle it that way, we still need to check whether subclasses like |
User-defined asset subclasses is only useful at execution time (if the user wants to introspect), and the UI (where we show |
Targeting to complete this by EOD today, so that we can get this included in tomorrow's beta release |
Apache Airflow version
main (development)
If "Other Airflow 2 version" selected, which one?
No response
What happened?
Asset event should be created when user triggers a Dag which is defined using asset decorator.
What you think should happen instead?
An asset event should be created since asset defined using asset decorator is outlet asset by default.
How to reproduce
Trigger the below Dag and check for asset events.
Operating System
Linux
Versions of Apache Airflow Providers
No response
Deployment
Other
Deployment details
No response
Anything else?
No response
Are you willing to submit PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: