From 02af0a2c87e2aaac5d51a06d59cfa0f51f45fc2d Mon Sep 17 00:00:00 2001 From: Sarah Hoffmann Date: Tue, 2 Jan 2024 16:15:44 +0100 Subject: [PATCH] use correct SQLAlchemy pool for asynchronous connections See https://github.com/sqlalchemy/sqlalchemy/issues/8771 --- nominatim/api/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nominatim/api/core.py b/nominatim/api/core.py index c0b83f80..3481e647 100644 --- a/nominatim/api/core.py +++ b/nominatim/api/core.py @@ -88,7 +88,7 @@ class NominatimAPIAsync: #pylint: disable=too-many-instance-attributes if self.config.get_int('API_POOL_SIZE') == 0: extra_args['poolclass'] = sa.pool.NullPool else: - extra_args['poolclass'] = sa.pool.QueuePool + extra_args['poolclass'] = sa.pool.AsyncAdaptedQueuePool extra_args['max_overflow'] = 0 extra_args['pool_size'] = self.config.get_int('API_POOL_SIZE') -- 2.39.5