ashb commented on a change in pull request #11970:
URL: https://github.com/apache/airflow/pull/11970#discussion_r522244600
##########
File path: airflow/www/app.py
##########
@@ -70,8 +71,22 @@ def create_app(config=None, testing=False,
app_name="Airflow"):
flask_app = Flask(__name__)
flask_app.secret_key = conf.get('webserver', 'SECRET_KEY')
- session_lifetime_days = conf.getint('webserver', 'SESSION_LIFETIME_DAYS',
fallback=30)
- flask_app.config['PERMANENT_SESSION_LIFETIME'] =
timedelta(days=session_lifetime_days)
+ if conf.has_option('webserver', 'SESSION_LIFETIME_DAYS') or
conf.has_option(
+ 'webserver', 'FORCE_LOG_OUT_AFTER'
+ ):
+ logging.error(
+ '`SESSION_LIFETIME_DAYS` option from `webserver` section has been '
+ 'renamed to `SESSION_LIFETIME_MINUTES`. New option allows to
configure '
+ 'session lifetime in minutes. FORCE_LOG_OUT_AFTER option has been
removed '
+ 'from `webserver` section. Please update your configuration.'
+ )
+ # Stop gunicorn server
https://github.com/benoitc/gunicorn/blob/20.0.4/gunicorn/arbiter.py#L526
+ sys.exit(4)
Review comment:
NOOOOOOOOO. Upgrade, don't error.
----------------------------------------------------------------
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]