retry
This commit is contained in:
1 parent
7d5c8c57b7
commit
1d732844e3
2 files changed
+30
-15
No files matched your search
+3
-1
@@ -26,7 +26,9 @@ class DatabaseManager:
|
||||
password = os.getenv('MYSQL_PASSWORD')
|
||||
database = os.getenv('MYSQL_DB')
|
||||
self._engine = create_engine(
|
||||
f"mysql+pymysql://{user}:{password}@{host}:{port}/{database}?charset=utf8mb4"
|
||||
f"mysql+pymysql://{user}:{password}@{host}:{port}/{database}?charset=utf8mb4",
|
||||
pool_pre_ping=True,
|
||||
pool_recycle=3600
|
||||
)
|
||||
return self._engine
|
||||
|
||||
|
||||
Reference in new issue
Block a user