From 7cd6f5258e5608ba5e4b4b583d56f3139354d74f Mon Sep 17 00:00:00 2001 From: "carlos.vdr" Date: Wed, 15 Nov 2023 12:53:41 -0600 Subject: [PATCH] fix: Added open pool outside init Signed-off-by: carlos.vdr --- autoagora/main.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/autoagora/main.py b/autoagora/main.py index 9592a94..2b51c2a 100644 --- a/autoagora/main.py +++ b/autoagora/main.py @@ -48,10 +48,9 @@ async def allocated_subgraph_watcher(): ) pgpool = psycopg_pool.AsyncConnectionPool( - conn_string, - min_size=1, - max_size=args.postgres_max_connections, + conn_string, min_size=1, max_size=args.postgres_max_connections, open=False ) + await pgpool.open() await pgpool.wait() assert pgpool except: