From f421119f9d3b9c132fa2b89939acf2357e12cac9 Mon Sep 17 00:00:00 2001 From: Arik Fraimovich Date: Tue, 19 Feb 2019 16:04:00 +0200 Subject: [PATCH] Remove options NullPool does not support (#3460) --- redash/models/base.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/redash/models/base.py b/redash/models/base.py index 461aa21a3d..529fff6329 100644 --- a/redash/models/base.py +++ b/redash/models/base.py @@ -18,6 +18,8 @@ def apply_pool_defaults(self, app, options): super(RedashSQLAlchemy, self).apply_pool_defaults(app, options) if settings.SQLALCHEMY_DISABLE_POOL: options['poolclass'] = NullPool + # Remove options NullPool does not support: + options.pop('max_overflow') db = RedashSQLAlchemy(session_options={