File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -359,17 +359,16 @@ async def lifespan(_: FastAPI):
359
359
global engine , async_session
360
360
if engine is None :
361
361
engine = sqlalchemy .ext .asyncio .create_async_engine (
362
- environ .get ("DATABASE_URL" , "sqlite:///db.sqlite" ),
363
- echo = True ,
362
+ environ .get ("DATABASE_URL" , "sqlite:///db.sqlite" )
364
363
)
365
364
async_session = sqlalchemy .ext .asyncio .async_sessionmaker (
366
365
engine , expire_on_commit = False
367
366
)
368
367
async with engine .begin () as conn :
369
368
await conn .run_sync (Base .metadata .create_all )
370
- # workers.append(
371
- # asyncio.create_task(exception_logger(url_worker(), name="url_worker"))
372
- # )
369
+ workers .append (
370
+ asyncio .create_task (exception_logger (url_worker (), name = "url_worker" ))
371
+ )
373
372
workers .append (
374
373
asyncio .create_task (
375
374
exception_logger (repeat_url_worker (), name = "repeat_url_worker" )
You can’t perform that action at this time.
0 commit comments