-
Notifications
You must be signed in to change notification settings - Fork 113
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
Installing kedro-telemetry
has altered the order of execution of Hooks
#2203
Comments
kedro-telemetry
has altered the order of execution of Hooks
If you have logging enable try change it to |
telemetry or our hook running first shouldn't matter, but what I am seeing from the logs is that the pipeline_registry function is running before our custom |
@inigohidalgo Ah, that's possible. Would that be possible to use the |
@inigohidalgo hi! Telemetry runs within the same hook as your code. As @noklam mentioned, it starts by collecting information about the default pipeline from the pipeline registry. It's not entirely clear to me why this is causing an issue in your case. However, we currently offer several options to withdraw consent and disable telemetry, which you can safely use in production. You can find more details here: |
Thanks @noklam @DimedS, it was indeed the fact that Basically: we have our hook which saves a copy of the Opting out with any of the methods listed there solves my issue. I haven't tried @noklam's suggestion to use the |
Wait, how can you access the context in a create_pipeline function? Isn’t the pipeline registry called before the context is created? |
@MatthiasRoels I can give you more details next week if needed, but before we had |
Description
Hello,
With yesterday's release of
kedro-viz
which setkedro-telemetry
as a required dependency, our kedro pipelines are breaking because of a change in behavior of our HooksWe have a hook which runs an
after_context_created
which initializes a singleton containing certain info about the context which we use later. This hook now isn't running at the same point as before and the singleton is being accessed from within the pipeline registry before it has had time to initialize itself correctly.The fix on our end is simple as we can just pin to lower versions of
viz
which do not forcetelemtry
, but I am curious as to what could be causing this issue for when we do upgrade to laterkedro
versions which also forcetelemetry
.Thanks
kedro==0.18.14
kedro-viz==10.1.0
kedro-telemetry==0.6.1
The text was updated successfully, but these errors were encountered: