We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4589cb2 commit 720d3a2Copy full SHA for 720d3a2
dd-java-agent/agent-llmobs/src/main/java/datadog/trace/llmobs/EvalProcessingWorker.java
@@ -145,8 +145,14 @@ public void run() {
145
private void runDutyCycle() throws InterruptedException {
146
Thread thread = Thread.currentThread();
147
while (!thread.isInterrupted()) {
148
- consumeBatch();
149
- flushIfNecessary();
+ LLMObsEval eval = queue.poll(ticksRequiredToFlush, TimeUnit.NANOSECONDS);
+ if (eval != null) {
150
+ buffer.add(eval);
151
+ consumeBatch();
152
+ flushIfNecessary();
153
+ } else if (!buffer.isEmpty()) {
154
155
+ }
156
}
157
158
0 commit comments