I have one more doubt about Hooks. I have a use case where I am tracking the performance metric of nodes using the before and after-run hooks. I was able to implement the logic, and it's working fine as expected. Now, I need to ensure that it will execute only in certain environments (such as production environments like Databricks, Azure, AWS, and so on), and not on local runs.
08/30/2023, 9:47 AM
so there are two options that come to mind:
• You can use the
attribute of the hook spec so that when you do
kedro run --env prod
you can intercept this
• The other more option is to maintain a list of environment variables present in those systems like
08/30/2023, 9:55 AM
but it is available only for pipeline hooks right !!!