فهرست منبع

Merge remote-tracking branch 'origin/master'

panwang 11 ماه پیش
والد
کامیت
93f9df8c65
2فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 1 1
      applications/match_alg/recall.py
  2. 1 1
      hypercorn_config.toml

+ 1 - 1
applications/match_alg/recall.py

@@ -367,7 +367,7 @@ async def recall_videos(params, trace_id):
     # url = "http://61.48.133.26:8111/search_videos"
     # requests.post(url, json=payload)
     # # print("请求完成")
-    await asyncio.sleep(15)
+    # await asyncio.sleep(15)
     # select_sql = "select video_id, video_title from crawler_video where platform='weixin_search' and user_id = '{}' order by update_time DESC limit 10".format(
     #     user_id)
     # out_video_list = select(sql=select_sql)

+ 1 - 1
hypercorn_config.toml

@@ -1,5 +1,5 @@
 reload = true
-bind = "0.0.0.0:8112"
+bind = "0.0.0.0:8111"
 workers = 2
 keep_alive_timeout = 60  # 保持连接的最大秒数,根据需要调整
 graceful_timeout = 30    # 重启或停止之前等待当前工作完成的时间