罗俊辉 1 سال پیش
والد
کامیت
ded2f2d53b
1فایلهای تغییر یافته به همراه2 افزوده شده و 0 حذف شده
  1. 2 0
      applications/routes.py

+ 2 - 0
applications/routes.py

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