Mbonea commited on
Commit
42f4a62
·
1 Parent(s): e814ccb

stop the background task

Browse files
Files changed (1) hide show
  1. App/app.py +3 -3
App/app.py CHANGED
@@ -45,9 +45,9 @@ app.add_middleware(
45
  async def startup_event():
46
  await Tortoise.init(config=TORTOISE_ORM)
47
  await Tortoise.generate_schemas()
48
- print("check subs")
49
- asyncio.create_task(periodic_task())
50
- print("checked subs")
51
 
52
 
53
  @app.get("/")
 
45
  async def startup_event():
46
  await Tortoise.init(config=TORTOISE_ORM)
47
  await Tortoise.generate_schemas()
48
+ # print("check subs")
49
+ # asyncio.create_task(periodic_task())
50
+ # print("checked subs")
51
 
52
 
53
  @app.get("/")