You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2020/11/13 16:10:55 UTC

[GitHub] [airflow] kaxil commented on a change in pull request #12332: Handle outdated session timeout gracefully.

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



##########
File path: airflow/configuration.py
##########
@@ -705,6 +705,28 @@ def _warn_deprecate(section, key, deprecated_section, deprecated_name):
                 stacklevel=3,
             )
 
+    def get_session_lifetime_config(self):
+        session_lifetime_days = self.getint('webserver', 'SESSION_LIFETIME_DAYS')
+        if session_lifetime_days or self.getint('webserver', 'FORCE_LOG_OUT_AFTER'):
+            logging.warning(
+                '`SESSION_LIFETIME_DAYS` option from `webserver` section has been '

Review comment:
       nit 
   ```suggestion
                   '`SESSION_LIFETIME_DAYS` option from `[webserver]` section has been '
   ```




----------------------------------------------------------------
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:
users@infra.apache.org