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/10/26 16:17:04 UTC

[GitHub] [airflow] pprzetacznik edited a comment on issue #11654: Add `session_lifetime_hours`/`session_lifetime_minutes` to the configuration

pprzetacznik edited a comment on issue #11654:
URL: https://github.com/apache/airflow/issues/11654#issuecomment-716019390


   Just for the record, I believe that creating `webserver_config.py` file in the airflow home directory file with the following content may work.
   ```
   PERMANENT_SESSION_LIFETIME = 60 * 60 # 60 minutes
   ```
   However, that won't work for 1.10.12 version yet so we need to wait until that will be released or use the master branch version.
   
   I came to that after studying the source code and haven't tested that yet as I'm still on 1.10.12 stable version.
   https://github.com/apache/airflow/blob/master/airflow/configuration.py#L825
   
   Also interesting thing to note is that having `rbac=True` enables usage of `webserver_config.py` in version 1.10.12.


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