-
Notifications
You must be signed in to change notification settings - Fork 19
feat: Add KeyPairResourcePolicy.max_session_lifetime
#583
Conversation
Codecov Report
@@ Coverage Diff @@
## main #583 +/- ##
==========================================
- Coverage 48.51% 48.48% -0.04%
==========================================
Files 53 53
Lines 9125 9127 +2
==========================================
- Hits 4427 4425 -2
- Misses 4698 4702 +4
Continue to review full report at Codecov.
|
TODO: add a timer to periodically check expired sessions |
* Now we can naturally declare an intrinsic checker: SessionLifetimeChecker * Removed duplicate codes in different checkers by this refactoring! (such as policy cache) * Now all checkers are run inside a single read-only transaction. * If a checker decides to terminate a session, remaining checkers are safely skipped.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I found an error in SessionLifetimeChecker
. Other parts seem to be working well in my test environment.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested and LGTM.
resolves lablup/backend.ai-internal#46