rogerxavier commited on
Commit
33e8fe3
1 Parent(s): 3cd722b

Update api.py

Browse files
Files changed (1) hide show
  1. api.py +2 -2
api.py CHANGED
@@ -61,8 +61,8 @@ async def execute_py_file(file_name: str):
61
 
62
 
63
  def someTask():
64
- time.sleep(2000)
65
- print("睡眠2s结束")
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: