potiuk commented on code in PR #50960:
URL: https://github.com/apache/airflow/pull/50960#discussion_r2128763746
##########
providers/fab/src/airflow/providers/fab/www/extensions/init_session.py:
##########
@@ -45,16 +45,19 @@ def make_session_permanent():
app.before_request(make_session_permanent)
elif selected_backend == "database":
+ from flask_appbuilder.extensions import db
+
app.session_interface = AirflowDatabaseSessionInterface(
app=app,
- db=None,
+ client=db,
permanent=permanent_cookie,
# Typically these would be configurable with Flask-Session,
# but we will set them explicitly instead as they don't make
# sense to have configurable in Airflow's use case
table="session",
key_prefix="",
use_signer=True,
+ cleanup_n_requests=5,
Review Comment:
Is in that the same constant in FAB ?
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]