Skip to content

Commit

Permalink
Add debug message for queue size
Browse files Browse the repository at this point in the history
  • Loading branch information
alexkuzmik committed Nov 26, 2024
1 parent 9d8402b commit 349ecb8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion sdks/python/src/opik/evaluation/evaluator.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def evaluate(
experiment_config: Optional[Dict[str, Any]] = None,
verbose: int = 1,
nb_samples: Optional[int] = None,
task_threads: int = 4,
task_threads: int = 16,
prompt: Optional[Prompt] = None,
scoring_key_mapping: Optional[
Dict[str, Union[str, Callable[[Dict[str, Any]], Any]]]
Expand Down
1 change: 1 addition & 0 deletions sdks/python/src/opik/message_processing/streamer.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ def flush(self, timeout: Optional[int]) -> None:
synchronization.wait_for_done(
check_function=lambda: (
self.workers_waiting()
and (LOGGER.debug("Queue size: %s", len(self._message_queue)) or True)
and self._message_queue.empty()
and (self._batch_manager is None or self._batch_manager.is_empty())
),
Expand Down

0 comments on commit 349ecb8

Please sign in to comment.