stop the background task
Browse files- 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("/")
|