Skip to content

Commit 56869bf

Browse files
authored
hotfix (#312)
1 parent 0cf2282 commit 56869bf

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/judgeval/common/tracer.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -745,8 +745,8 @@ def record_output(self, output: Any):
745745
asyncio.create_task(self._update_coroutine(span, output, "output"))
746746

747747
# # Queue span with output data (unless it's pending)
748-
# if self.background_span_service and not inspect.iscoroutine(output):
749-
# self.background_span_service.queue_span(span, span_state="output")
748+
if self.background_span_service and not inspect.iscoroutine(output):
749+
self.background_span_service.queue_span(span, span_state="output")
750750

751751
return span # Return the created entry
752752
# Removed else block - original didn't have one
@@ -1005,6 +1005,7 @@ def _worker_loop(self):
10051005
pending_task_count = 0 # Track how many tasks we've taken from queue but not marked done
10061006

10071007
while not self._shutdown_event.is_set():
1008+
# print(f"Worker loop queue size: {self._span_queue.qsize()}")
10081009
try:
10091010
# Try to get a span with timeout
10101011
try:

0 commit comments

Comments
 (0)