REFACTOR external service and improve websocket training
This commit is contained in:
@@ -49,6 +49,7 @@ class BaseServiceSettings(BaseSettings):
|
||||
DB_MAX_OVERFLOW: int = int(os.getenv("DB_MAX_OVERFLOW", "20"))
|
||||
DB_POOL_TIMEOUT: int = int(os.getenv("DB_POOL_TIMEOUT", "30"))
|
||||
DB_POOL_RECYCLE: int = int(os.getenv("DB_POOL_RECYCLE", "3600"))
|
||||
DB_POOL_PRE_PING: bool = os.getenv("DB_POOL_PRE_PING", "true").lower() == "true"
|
||||
DB_ECHO: bool = os.getenv("DB_ECHO", "false").lower() == "true"
|
||||
|
||||
# ================================================================
|
||||
@@ -399,6 +400,7 @@ class BaseServiceSettings(BaseSettings):
|
||||
"max_overflow": self.DB_MAX_OVERFLOW,
|
||||
"pool_timeout": self.DB_POOL_TIMEOUT,
|
||||
"pool_recycle": self.DB_POOL_RECYCLE,
|
||||
"pool_pre_ping": self.DB_POOL_PRE_PING,
|
||||
"echo": self.DB_ECHO,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user