Browse Source

add timeout

luojunhui 4 tháng trước cách đây
mục cha
commit
c036d6d957
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      applications/functions/get_history_oss_path.py

+ 1 - 0
applications/functions/get_history_oss_path.py

@@ -18,6 +18,7 @@ async def request_for_fission_info(content_id: str) -> Dict:
                 url,
                 json={"contentId": content_id},
                 headers={"Content-Type": "application/json"},
+                timeout=5
             ) as response:
                 response.raise_for_status()
                 return await response.json()