Skip to content

Commit d45abc7

Browse files
committed
[SDK] docs: clarify Streamer.put force parameter behavior
1 parent c646da7 commit d45abc7

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

sdks/python/src/opik/message_processing/streamer.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,12 @@ def put(self, message: messages.BaseMessage, force: bool = False) -> bool:
5555
Returns ``True`` if the message was accepted by the streamer (queued or
5656
consumed by a preprocessor). Returns ``False`` if the streamer is draining
5757
or if preprocessing failed, so callers that need durability can react.
58+
59+
Args:
60+
message: The message to enqueue.
61+
force: If ``True``, enqueue the message even while the streamer is
62+
draining. This is used for internal replay paths that must run
63+
during shutdown.
5864
"""
5965
with self._lock:
6066
if self._drain and not force:

0 commit comments

Comments
 (0)