Pārlūkot izejas kodu

AIGCProducePlanDetail timeout

wangyunpeng 1 mēnesi atpakaļ
vecāks
revīzija
fa8c6f4d8c

+ 2 - 2
long-article-recommend-service/src/main/java/com/tzld/longarticle/recommend/server/remote/aigc/AIGCProducePlanDetailService.java

@@ -22,10 +22,10 @@ import java.util.Objects;
 public class AIGCProducePlanDetailService {
 
     private final CloseableHttpClient client =
-            HttpClientFactory.create(10000, 180000, 200, 200, 0, 10000);
+            HttpClientFactory.create(30000, 180000, 200, 200, 0, 30000);
 
     public ProducePlanDetailVO articleGetProducePlanDetail(String planId) {
-        int retryTimes = 2;
+        int retryTimes = 5;
         while (retryTimes > 0) {
             ProducePlanDetailVO result = post(planId);
             if (Objects.nonNull(result)) {