罗俊辉 hai 1 ano
pai
achega
ded2f2d53b
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      applications/routes.py

+ 2 - 0
applications/routes.py

@@ -4,6 +4,7 @@
 import os
 import time
 import uuid
+import asyncio
 from quart import Blueprint, jsonify, request
 
 from applications.log import logging
@@ -25,6 +26,7 @@ async def hello():
         info="请求接口成功",
         port="healthcheck"
     )
+    await asyncio.sleep(30)
     return jsonify({'message': 'Hello, World!'})