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_hook decorators

  • Implementing asset sensors

  1. Success hooks can be implemented by:

    1. Adding the @success_hook decorator to your function

    2. Attaching the hook to your asset definition

    3. The hook will automatically run after successful materialization

  2. Asset sensors provide more flexibility and control:

    1. Monitor asset materialization events

    2. Trigger custom logic based on asset state changes

    3. Can be configured to watch specific assets

    4. Allow for more complex automation workflows

For detailed implementation guidance: