rogerxavier
commited on
Commit
•
33e8fe3
1
Parent(s):
3cd722b
Update api.py
Browse files
api.py
CHANGED
@@ -61,8 +61,8 @@ async def execute_py_file(file_name: str):
|
|
61 |
|
62 |
|
63 |
def someTask():
|
64 |
-
time.sleep(
|
65 |
-
print("睡眠
|
66 |
|
67 |
@app.get("/backTaskTest")
|
68 |
def returnRandomSubscribeUrl(background_tasks: BackgroundTasks)->str:
|
|
|
61 |
|
62 |
|
63 |
def someTask():
|
64 |
+
time.sleep(20)
|
65 |
+
print("睡眠20s结束")
|
66 |
|
67 |
@app.get("/backTaskTest")
|
68 |
def returnRandomSubscribeUrl(background_tasks: BackgroundTasks)->str:
|