Skip to content

Commit

Permalink
Remove connect args
Browse files Browse the repository at this point in the history
  • Loading branch information
bram-vdberg committed Dec 13, 2024
1 parent 83e2b0b commit 88ae718
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
Binary file added src/.pg_client.py.swp
Binary file not shown.
10 changes: 1 addition & 9 deletions src/pg_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,7 @@ class MultiInstanceDBFetcher:
def __init__(self, db_urls: list[str]):
log.info("Initializing MultiInstanceDBFetcher")
self.connections = [
create_engine(f"postgresql+psycopg2://{url}",
pool_pre_ping=True,
connect_args={
"keepalives": 1,
"keepalives_idle": 30,
"keepalives_interval": 10,
"keepalives_count": 5,
}
) for url in db_urls
create_engine(f"postgresql+psycopg2://{url}") for url in db_urls
]

@classmethod
Expand Down

0 comments on commit 88ae718

Please sign in to comment.