You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@livy.apache.org by "askhatri (via GitHub)" <gi...@apache.org> on 2023/02/01 04:26:54 UTC

[GitHub] [incubator-livy] askhatri commented on a diff in pull request #384: [LIVY-968][SERVER] Provide ttl field for a livy session

askhatri commented on code in PR #384:
URL: https://github.com/apache/incubator-livy/pull/384#discussion_r1092752125


##########
server/src/main/scala/org/apache/livy/sessions/SessionManager.scala:
##########
@@ -168,7 +169,9 @@ class SessionManager[S <: Session, R <: RecoveryMetadata : ClassTag](
             false
           } else {
             val currentTime = System.nanoTime()
-            currentTime - session.lastActivity > sessionTimeout
+            val calculatedTimeout =

Review Comment:
   I got it @ksumit . So presently we have three options now:
   1) Use "ttl" with "String" datatype and keep parsing logic same as global config.
   2) Change filed name to "ttlInMinutes" with "Int" datatype and support only minutes in user inputs.
   3) Change filed name to "ttlInSeconds" with "Int" datatype and support only seconds in user inputs.
   
   Since the logic to parse string already and it is consistent with global configuration we are planing to go with option 1. i.e. using "ttl" field as "String".



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@livy.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org