Skip to content

Commit

Permalink
add pool_pre_ping to engine creation options (#103)
Browse files Browse the repository at this point in the history
  • Loading branch information
meksor authored Jul 31, 2024
1 parent 8437eca commit fa14396
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ixmp4/data/backend/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@

@lru_cache()
def cached_create_engine(dsn: str) -> Engine:
return create_engine(dsn)
return create_engine(dsn, pool_pre_ping=True)


class IamcSubobject(BaseIamcSubobject):
Expand Down

0 comments on commit fa14396

Please sign in to comment.