Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/sentry/consumers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -469,6 +469,7 @@ def get_stream_processor(
add_global_tags: bool = False,
profile_consumer_join: bool = False,
enable_autocommit: bool = False,
retry_handle_destroyed: bool = False,
) -> StreamProcessor:
from sentry.utils import kafka_config

Expand Down Expand Up @@ -527,6 +528,7 @@ def build_consumer_config(group_id: str):
auto_offset_reset=auto_offset_reset,
strict_offset_reset=strict_offset_reset,
enable_auto_commit=enable_autocommit,
retry_handle_destroyed=retry_handle_destroyed,
)

if max_poll_interval_ms is not None:
Expand Down
6 changes: 6 additions & 0 deletions src/sentry/runner/commands/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -556,6 +556,12 @@ def taskbroker_send_tasks(
default=False,
help="Enable Kafka autocommit mode with 1s commit interval. Offsets are stored via store_offsets and rdkafka commits them automatically.",
)
@click.option(
"--retry-handle-destroyed",
is_flag=True,
default=False,
help="Enable retrying on `KafkaError._DESTROY` during commit.",
)
@configuration
def basic_consumer(
consumer_name: str,
Expand Down
Loading