-
Notifications
You must be signed in to change notification settings - Fork 906
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Document more advanced hook use cases #2690
Comments
I thought I have created a ticket for this but I didnt. Thanks for creating this! |
We need to explain WHY user need to do this, and examples of how to do it. |
https://github.com/Galileo-Galilei/kedro-mlflow/blob/845ad919c9dbd020e948e8adc2e0f9064de1ef68/kedro_mlflow/framework/hooks/mlflow_hook.py#L50-L63 is a good example. This get asked in the intermediate training, so maybe we can create an example that showcase this. |
This comment was marked as off-topic.
This comment was marked as off-topic.
I've seen a couple of references to |
Hmmm actually, I'm not sure it ever existed, maybe it's a typo? Does |
It does, but it was introduced in 0.18.1 and I am on an earlier version. Granted, I am building the hooks to ease our transition to 0.18+, but if there was a hook already implemented which offered a similar API to test the functionality without needing to actually upgrade our project it would've been quicker to test. Thanks |
Hooks were introduced in 0.16.0 (cc75a1c), and a few of them later on. Here's the list of hooks in 0.16.6 for example https://docs.kedro.org/en/0.16.6/07_extend_kedro/04_hooks.html#execution-timeline-hooks |
Description
Hooks are stateful objects, which enables users to, for example, store the context in the
after_context_created
hook and use it later in a hook that doesn't receive it:(code sample by @antonymilne )
We should better document this.
Context
Follow up from gh-506 and other discussions, see for example https://www.linen.dev/s/kedro/t/12112601/does-anyone-know-if-there-is-a-reason-why-we-could-not-pass-#4e36a67f-36d3-4354-a3d5-4347a59ef28f
This is very useful when migrating projects from older versions of Kedro, customize pipeline execution, and more.
The text was updated successfully, but these errors were encountered: