Skip to content

Commit f0e6345

Browse files
committed
Rm echo and restore task
1 parent 07a1a87 commit f0e6345

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/main.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -359,17 +359,16 @@ async def lifespan(_: FastAPI):
359359
global engine, async_session
360360
if engine is None:
361361
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")
364363
)
365364
async_session = sqlalchemy.ext.asyncio.async_sessionmaker(
366365
engine, expire_on_commit=False
367366
)
368367
async with engine.begin() as conn:
369368
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+
)
373372
workers.append(
374373
asyncio.create_task(
375374
exception_logger(repeat_url_worker(), name="repeat_url_worker")

0 commit comments

Comments
 (0)