Hi team, Happy Friday! I’m trying to understand wh...
# plugins-general
z
Hi team, Happy Friday! I’m trying to understand what’s happening under the hood. I have a dumb question regarding
ProjectPlugin
class: I saw that we call
async with plugin.trigger_hooks
in many different places… How a
ProjectPlugin
object call the function defined in
HookObject
class? I saw many plugins (Airflow/DBT/Singer) inherit the BasePlugin(HookObject) class… Thank you so much! thankyou
f
The HookObject class ends up calling the decorated functions of the plugins https://gitlab.com/meltano/meltano/-/blob/master/src/meltano/core/plugin/airflow.py#L68
(when trigger_hooks is called for something like 'configure')
z
Oh! I see! Thank you! Just a quick follow up question. I still don’t understand how we can call the trigger_hooks here on a ProjectPlugin object… could the plugin be another class (Airflow/DBTPlugin/SingerPlugin)? I don’t find inheritance between them
Oh… I got it… We have
_fallback_to
attribute
Thank you so much!