-
Notifications
You must be signed in to change notification settings - Fork 905
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
Implement pipeline autodiscovery #1664
Comments
@imdoroshenko we should sync up on this and make sure our assumptions still hold |
Thought about this in general quite a bit over the past couple days. Overall, quite aligned. I like the fact that, by just automating discovery, and even so in an optional way, it does one thing well without forcing any workflow.
I like the name. :)
Just confirming--this maintains the behavior since 0.17.3 wherein the registry is lazily loaded, right? I assume, since it's in
Nit: Need a case for no pipelines being defined; guess just wrap this in an |
@deepyaman thanks for the comments! I'm much happier about this solution too, and with the definition of Good question about the lazy loading behaviour. This should indeed be maintained since no code in And very good point about the case of no pipelines being defined. What do you think of defining Either that or I would just explicitly do:
|
Clever; I like it! |
@AntonyMilneQB I don't see significant documentation on the the pipeline registry. Do you think it makes sense to add a |
Personally I would do a whole new file Also I know this is a fairly big documentation update, so do feel free to do bit by bit or in a separate PR if easier for you 🙂 🙏 |
I did the last modular pipeline update refresh so happy to help plan the changes |
Great! I pinged @MerelTheisenQB on Friday, since I thought you were on holiday, and she was aligned in terms of creating a new page for the pipeline registry.
I think the functionality is good to go on my current PR; just need to add the documentation. I'll plan to:
Alternatively, I'd also be happy to merge the current code (after review) and add the 1-2 documentation PRs on top of that. |
@deepyaman Either approach works for me - up to you. Just mark the PR(s) as ready for review whenever you want me to have a look through and I'll do so. |
Great! In that case, I've marked my current PR as ready for review. :) |
Following #1284 and a discussion with Ivan, here's what we're going to do:
1. Define a function
find_pipelines
In
kedro.framework.project.__init__.py
, something like this:Name is TBD (note I changed from previously-suggested
autoregister
because it doesn't actually register any more, just finds them). It's also like setup.py'sfind_packages
here.2. Call this function from project template and all starters
In pipeline_registry.py:
3. Add documentation, tests, etc.
The text was updated successfully, but these errors were encountered: