Skip to content

Add SESSION_CLASS option to project settings#5393

Open
lrcouto wants to merge 12 commits intomainfrom
session-class-configurable
Open

Add SESSION_CLASS option to project settings#5393
lrcouto wants to merge 12 commits intomainfrom
session-class-configurable

Conversation

@lrcouto
Copy link
Contributor

@lrcouto lrcouto commented Feb 20, 2026

Description

#5358

Implements the possibility of choosing a a class to handle Kedro sessions through the settings.py file in the Kedro project.

# Class that manages the KedroSession.
from {__name__} import MyKedroSession
SESSION_CLASS = MyKedroSession

Done in preparation to the future implementation of a KedroServiceSession, so it can be switched depending on user's purpose for the project.

Developer Certificate of Origin

We need all contributions to comply with the Developer Certificate of Origin (DCO). All commits must be signed off by including a Signed-off-by line in the commit message. See our wiki for guidance.

If your PR is blocked due to unsigned commits, then you must follow the instructions under "Rebase the branch" on the GitHub Checks page for your PR. This will retroactively add the sign-off to all unsigned commits and allow the DCO check to pass.

Checklist

  • Read the contributing guidelines
  • Signed off each commit with a Developer Certificate of Origin (DCO)
  • Opened this PR as a 'Draft Pull Request' if it is work-in-progress
  • Updated the documentation to reflect the code changes
  • Added a description of this change in the RELEASE.md file
  • Added tests to cover my changes
  • Checked if this change will affect Kedro-Viz, and if so, communicated that with the Viz team

lrcouto and others added 5 commits February 20, 2026 11:28
Signed-off-by: Laura Couto <laurarccouto@gmail.com>
Signed-off-by: Laura Couto <laurarccouto@gmail.com>
Signed-off-by: Laura Couto <laurarccouto@gmail.com>
Signed-off-by: Laura Couto <laurarccouto@gmail.com>
@lrcouto lrcouto marked this pull request as ready for review February 20, 2026 21:30
@lrcouto lrcouto requested a review from merelcht as a code owner February 20, 2026 21:30
Signed-off-by: Laura Couto <laurarccouto@gmail.com>
@lrcouto lrcouto requested a review from yetudada as a code owner February 20, 2026 21:50
Signed-off-by: Laura Couto <laurarccouto@gmail.com>
@lrcouto lrcouto linked an issue Feb 20, 2026 that may be closed by this pull request
@lrcouto lrcouto requested review from DimedS and ankatiyar February 23, 2026 14:09
@ankatiyar
Copy link
Contributor

Actually, could we separate out an AbstractSession class which the SESSION_CLASS (and KedroSession) should be based on? Otherwise we would have to update it again, for now the AbstractSession can be barebones

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make session class configurable in settings.py

2 participants