Spaces:
Runtime error
Runtime error
changes in db connection
Browse files
app/database/connection.py
CHANGED
|
@@ -20,9 +20,8 @@ DB_URL_FOR_SQL_AL=settings.DB_URL_FOR_SQL_AL
|
|
| 20 |
|
| 21 |
engine = create_engine(
|
| 22 |
DB_URL_FOR_SQL_AL,
|
| 23 |
-
echo=False,
|
| 24 |
pool_pre_ping=True,
|
| 25 |
-
pool_recycle=
|
| 26 |
)
|
| 27 |
|
| 28 |
SessionLocal = sessionmaker(bind=engine, autoflush=False, autocommit=False)
|
|
|
|
| 20 |
|
| 21 |
engine = create_engine(
|
| 22 |
DB_URL_FOR_SQL_AL,
|
|
|
|
| 23 |
pool_pre_ping=True,
|
| 24 |
+
pool_recycle=300
|
| 25 |
)
|
| 26 |
|
| 27 |
SessionLocal = sessionmaker(bind=engine, autoflush=False, autocommit=False)
|