ashb commented on a change in pull request #12332:
URL: https://github.com/apache/airflow/pull/12332#discussion_r523200301



##########
File path: airflow/settings.py
##########
@@ -337,6 +337,31 @@ def prepare_syspath():
         sys.path.append(PLUGINS_FOLDER)
 
 
+def get_session_lifetime_config():
+    """Gets session timeout configs and handles outdated configs gracefully."""
+    session_lifetime_days = conf.getint('webserver', 'session_lifetime_days', 
fallback=None)
+    if session_lifetime_days or conf.getint('webserver', 'force_logout_after', 
fallback=None):
+        warnings.warn(
+            '`session_lifetime_days` option from `[webserver]` section has 
been '
+            'renamed to `session_lifetime_minutes`. The new option allows to 
configure '
+            'session lifetime in minutes. The `force_logout_after` option has 
been removed '
+            'from `[webserver]` section. Please update your configuration.',
+            category=DeprecationWarning,
+        )

Review comment:
       (Sorry missed this in earlier review)




----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to