Skip to content
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

Make the Session more lightweight and re-entrant #4503

Open
astrojuanlu opened this issue Feb 19, 2025 · 1 comment
Open

Make the Session more lightweight and re-entrant #4503

astrojuanlu opened this issue Feb 19, 2025 · 1 comment

Comments

@astrojuanlu
Copy link
Member

At our organisation we often needed to run a kedro session from outside kedro, for example from streamlit app or a rest api. For now, we don't manage to do that, we instead run the web app server inside of kedro, more specifically inside a custom kedro runner. Here is our current reasons for doing that :

  • We wanted to avoid creating and running kedro sessions in each HTTP request call. There is a lot of overhead included in the kedro session creation and session running (context creation, catalog creation, hooks, ...).
  • We wanted to leverage kedro session, context and CLI as the main application lifecycle manager(entry point, config management,...)

@takikadiri at #2169 (comment)

This eventually resulted in https://github.com/takikadiri/kedro-boot/, see #2169 (comment)

The priorities are

  • Enable data injection into KedroSession runs
  • Make session_id customisable
  • Make KedroSession re-entrant
  • Understand API use cases
@astrojuanlu
Copy link
Member Author

Added #3540 as sub-issue just so we don't lose sight of it! Ideally we can leverage part of that research

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

No branches or pull requests

1 participant