Skip to content

Commit

Permalink
Update sdks/python/apache_beam/io/kafka.py
Browse files Browse the repository at this point in the history
Co-authored-by: Jonathan Sabbagh <[email protected]>
  • Loading branch information
xianhualiu and jbsabbagh authored Apr 10, 2024
1 parent c2c11e5 commit 6bf7246
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sdks/python/apache_beam/io/kafka.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,9 @@ def __init__(
:param timestamp_policy: The built-in timestamp policy which is used for
extracting timestamp from KafkaRecord.
:param consumer_polling_timeout_seconds: Kafka client polling request
timeout time in seconds. Default is 2 seconds.
timeout time in seconds. A lower timeout optimizes for latency. Increase
the timeout if the consumer is not fetching enough (or any) records.
Default is 2 seconds.
:param with_metadata: whether the returned PCollection should contain
Kafka related metadata or not. If False (default), elements of the
returned PCollection will be of type 'bytes' if True, elements of the
Expand Down

0 comments on commit 6bf7246

Please sign in to comment.