AIP-103: Allow for get/set/delete/clear to run for AssetStateStoreAccessor on Triggerer#68900
Conversation
…r to run for AssetStateStoreAccessor on Triggerer
get/set/delete/clear to run for AssetStateStoreAccessor on Triggererget/set/delete/clear to run for AssetStateStoreAccessor on Triggerer
amoghrajesh
left a comment
There was a problem hiding this comment.
Some more work is needed.
Co-authored-by: Amogh Desai <amoghrajesh1999@gmail.com>
|
@amoghrajesh - changes have been implemented. |
amoghrajesh
left a comment
There was a problem hiding this comment.
This PR makes self.asset_state_store actually functional inside BaseEventTrigger.run(), so it is worth documenting on the asset-state-store.rst page.
Right now theres nothing explaining how to use self.asset_state_store from a trigger, that the triggerer injects it before run() is called. The example in the PR description is a good starting point.
|
@amoghrajesh - all feedback has been implemented! |
amoghrajesh
left a comment
There was a problem hiding this comment.
Thanks for working on this @jroachgolf84! Looks good.
|
Actually let me just apply the suggestions. |
Co-authored-by: Amogh Desai <amoghrajesh1999@gmail.com>
Backport successfully created: v3-3-testNote: As of Merging PRs targeted for Airflow 3.X In matter of doubt please ask in #release-management Slack channel.
|
…r `AssetStateStoreAccessor` on Triggerer (apache#68900) (cherry picked from commit feea09d) Co-authored-by: Jake McGrath <116606359+jroachgolf84@users.noreply.github.com> Co-authored-by: Amogh Desai <amoghrajesh1999@gmail.com>
…r `AssetStateStoreAccessor` on Triggerer (apache#68900) (cherry picked from commit feea09d) Co-authored-by: Jake McGrath <116606359+jroachgolf84@users.noreply.github.com> Co-authored-by: Amogh Desai <amoghrajesh1999@gmail.com>
…eStoreAccessor` on Triggerer (apache#68900) Co-authored-by: Amogh Desai <amoghrajesh1999@gmail.com>
Description
When attempting to use the Asset State Store from within a
BaseEventTrigger, the following exception was thrown:This was called out as something that needed to be addressed by @vikramkoka in #67839. This PR addresses this error by adding a pathway for each of the 8 operations that the Asset State Store can perform.
related: #67839
Testing
Changes were tested using both unit-tests, as well as E2E. Unit-tests can be run using the below commands:
E2E Testing Example
To test this E2E, a custom
BaseEventTriggerwas written to testget,set,delete, andclearoperations. The DAG that uses this Trigger executes successfully E2E, and the Triggered contains all of the expected logging statements.