supeng 1 day ago
parent
commit
1e413cbf23

+ 18 - 0
content-understanding-core/src/main/java/com/tzld/piaoquan/content/understanding/service/impl/ContentServiceImpl.java

@@ -223,6 +223,12 @@ public class ContentServiceImpl implements ContentService {
                     submitTasks(submitTasksParam);
                 } catch (Exception e) {
                     XxlJobLogger.log("record = {} error", record);
+                } finally {
+                    try {
+                        TimeUnit.SECONDS.sleep(2);
+                    } catch (InterruptedException e) {
+                        log.error(e.getMessage(), e);
+                    }
                 }
             }
         } else {
@@ -285,6 +291,12 @@ public class ContentServiceImpl implements ContentService {
                     TaskResultVO taskResultVO = submitTasks(submitTasksParam);
                 } catch (Exception e) {
                     XxlJobLogger.log("record = {} error", record);
+                } finally {
+                    try {
+                        TimeUnit.SECONDS.sleep(2);
+                    } catch (InterruptedException e) {
+                        log.error(e.getMessage(), e);
+                    }
                 }
             }
         } else {
@@ -346,6 +358,12 @@ public class ContentServiceImpl implements ContentService {
                     TaskResultVO taskResultVO = submitTasks(submitTasksParam);
                 } catch (Exception e) {
                     XxlJobLogger.log("record = {} error", record);
+                } finally {
+                    try {
+                        TimeUnit.SECONDS.sleep(2);
+                    } catch (InterruptedException e) {
+                        log.error(e.getMessage(), e);
+                    }
                 }
             }
         } else {