Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc: Describe max_batch_size/max_batch_time in our strategies #294

Merged
merged 1 commit into from
Oct 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions arroyo/processing/strategies/batching.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ class BatchStep(ProcessingStrategy[Union[FilteredPayload, TStrategyPayload]]):

This strategy propagates `MessageRejected` exceptions from the
downstream steps if they are thrown.

:param max_batch_size: How many messages should be reduced into one at maximum.
:param max_batch_time: How much time (in seconds) should be spent reducing
messages together before flushing the batch.
"""

def __init__(
Expand Down
4 changes: 4 additions & 0 deletions arroyo/processing/strategies/reduce.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ class Reduce(

This strategy propagates `MessageRejected` exceptions from the
downstream steps if they are thrown.

:param max_batch_size: How many messages should be reduced into one at maximum.
:param max_batch_time: How much time (in seconds) should be spent reducing
messages together before flushing the batch.
"""

def __init__(
Expand Down
Loading