We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 00599b6 commit 584e5ecCopy full SHA for 584e5ec
kafka/consumer/subscription_state.py
@@ -36,8 +36,11 @@ class SubscriptionState(object):
36
the assigned partitions. This is updated through committed() and can be used
37
to set the initial fetch position (e.g. Fetcher._reset_offset() ).
38
"""
39
- _SUBSCRIPTION_EXCEPTION_MESSAGE = ("Subscription to topics, partitions and"
40
- " pattern are mutually exclusive")
+ _SUBSCRIPTION_EXCEPTION_MESSAGE = (
+ "You must choose only one way to configure your consumer:"
41
+ " (1) subscribe to specific topics by name,"
42
+ " (2) subscribe to topics matching a regex pattern,"
43
+ " (3) assign itself specific topic-partitions.")
44
45
def __init__(self, offset_reset_strategy='earliest'):
46
"""Initialize a SubscriptionState instance
0 commit comments