How to Trigger Code After Asset Materialization
Last updated: October 20, 2025
There are two main approaches to executing code after an asset materializes:
Using
success_hookdecoratorsImplementing asset sensors
Success hooks can be implemented by:
Adding the
@success_hookdecorator to your functionAttaching the hook to your asset definition
The hook will automatically run after successful materialization
Asset sensors provide more flexibility and control:
Monitor asset materialization events
Trigger custom logic based on asset state changes
Can be configured to watch specific assets
Allow for more complex automation workflows
For detailed implementation guidance: