|
|
|
@ -1972,14 +1972,14 @@ public class DocApiController extends BaseController { |
|
|
|
System.err.println("处理 Python 响应时发生错误: " + e.getMessage()); |
|
|
|
retryCount++; |
|
|
|
if (retryCount > maxRetries) break; |
|
|
|
Thread.sleep(10 * 60 * 1000); |
|
|
|
Thread.sleep(2 * 60 * 1000); |
|
|
|
continue; |
|
|
|
} catch (Exception e) { |
|
|
|
// 其他潜在异常,如 sendPython 抛出的异常
|
|
|
|
System.err.println("调用 Python 时发生异常: " + e.getMessage()); |
|
|
|
retryCount++; |
|
|
|
if (retryCount > maxRetries) break; |
|
|
|
Thread.sleep(10 * 60 * 1000); |
|
|
|
Thread.sleep(2 * 60 * 1000); |
|
|
|
continue; |
|
|
|
} |
|
|
|
} |
|
|
|
|