llm timeout 문제
This commit is contained in:
+1
-15
@@ -34,7 +34,6 @@ import java.util.Optional;
|
||||
public class StrategyEvaluationTa4jDiagnosticsService {
|
||||
|
||||
private static final int MAX_RULE_JSON_CHARS = 8_000;
|
||||
private static final int MAX_TRACE_LINES = 100;
|
||||
|
||||
private final LiveConditionStatusService liveConditionStatusService;
|
||||
private final GcStrategyRepository strategyRepo;
|
||||
@@ -176,21 +175,8 @@ public class StrategyEvaluationTa4jDiagnosticsService {
|
||||
block.put("descriptorJson", truncate(ComponentSerialization.toJson(descriptor), MAX_RULE_JSON_CHARS));
|
||||
}
|
||||
|
||||
java.util.List<String> traceLines;
|
||||
boolean satisfied;
|
||||
try (Ta4jRuleTraceCapture capture = Ta4jRuleTraceCapture.open()) {
|
||||
satisfied = capture.evaluateWithTrace(rule, evalIndex, null);
|
||||
traceLines = capture.lines();
|
||||
}
|
||||
boolean satisfied = rule.isSatisfied(evalIndex, null);
|
||||
block.put("satisfiedAtEvalIndex", satisfied);
|
||||
ArrayNode traceArr = block.putArray("evaluationTraceLog");
|
||||
int n = Math.min(traceLines.size(), MAX_TRACE_LINES);
|
||||
for (int i = 0; i < n; i++) {
|
||||
traceArr.add(traceLines.get(i));
|
||||
}
|
||||
if (traceLines.isEmpty()) {
|
||||
block.put("traceNote", "TRACE 로그 없음 — logback TRACE 미활성 또는 Rule trace 미지원");
|
||||
}
|
||||
} catch (Exception e) {
|
||||
block.put("buildError", e.getMessage());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user