File tree 2 files changed +5
-3
lines changed
2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 36
36
if settings .MODE == ModeEnum .testing
37
37
else AsyncAdaptedQueuePool , # Asincio pytest works with NullPool
38
38
# pool_size=POOL_SIZE,
39
- # max_overflow=64,
39
+ # max_overflow=64,
40
40
)
41
41
42
42
SessionLocalCelery = sessionmaker (
Original file line number Diff line number Diff line change @@ -117,10 +117,12 @@ async def lifespan(app: FastAPI):
117
117
db_url = str (settings .ASYNC_DATABASE_URI ),
118
118
engine_args = {
119
119
"echo" : False ,
120
- "poolclass" : NullPool if settings .MODE == ModeEnum .testing else AsyncAdaptedQueuePool
120
+ "poolclass" : NullPool
121
+ if settings .MODE == ModeEnum .testing
122
+ else AsyncAdaptedQueuePool
121
123
# "pool_pre_ping": True,
122
124
# "pool_size": settings.POOL_SIZE,
123
- # "max_overflow": 64,
125
+ # "max_overflow": 64,
124
126
},
125
127
)
126
128
app .add_middleware (GlobalsMiddleware )
You can’t perform that action at this time.
0 commit comments