You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "slmg (via GitHub)" <gi...@apache.org> on 2023/07/22 14:28:43 UTC
[GitHub] [airflow] slmg commented on a diff in pull request #32759: Pass app context to webserver_config.py
slmg commented on code in PR #32759:
URL: https://github.com/apache/airflow/pull/32759#discussion_r1271303156
##########
airflow/www/app.py:
##########
@@ -81,7 +81,9 @@ def create_app(config=None, testing=False):
flask_app.secret_key = conf.get("webserver", "SECRET_KEY")
flask_app.config["PERMANENT_SESSION_LIFETIME"] = timedelta(minutes=settings.get_session_lifetime_config())
- flask_app.config.from_pyfile(settings.WEBSERVER_CONFIG, silent=True)
+ # Enable customizations in webserver_config.py to be applied via Flask.current_app.
Review Comment:
Given it would already be a choice to import `flask.current_app` or not in *webserver_config.py*, I am not sure what value an extra configurable option step would add?
--
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@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org