summaryrefslogtreecommitdiff
path: root/kafka/consumer/multiprocess.py
diff options
context:
space:
mode:
authorDana Powers <dana.powers@rd.io>2016-01-12 16:52:30 -0800
committerDana Powers <dana.powers@rd.io>2016-01-12 16:52:30 -0800
commit4079a582b07989e683bcb2d87f6d522ed61a4f66 (patch)
treedeba002c4b9ce6407fe8160afceccc25d9660b09 /kafka/consumer/multiprocess.py
parentdcad3fea16028ae00f64baa981553b62666b15fb (diff)
downloadkafka-python-deprecation_warnings.tar.gz
Add DeprecationWarnings to legacy KafkaClient, Simple/MultiProcess/Consumer, and KafkaConnectiondeprecation_warnings
Diffstat (limited to 'kafka/consumer/multiprocess.py')
-rw-r--r--kafka/consumer/multiprocess.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/kafka/consumer/multiprocess.py b/kafka/consumer/multiprocess.py
index 9358b09..fddb269 100644
--- a/kafka/consumer/multiprocess.py
+++ b/kafka/consumer/multiprocess.py
@@ -4,6 +4,7 @@ from collections import namedtuple
import logging
from multiprocessing import Process, Manager as MPManager
import time
+import warnings
from six.moves import queue
@@ -135,6 +136,10 @@ class MultiProcessConsumer(Consumer):
partitions_per_proc=0,
**simple_consumer_options):
+ warnings.warn('This class has been deprecated and will be removed in a'
+ ' future release. Use KafkaConsumer instead',
+ DeprecationWarning)
+
# Initiate the base consumer class
super(MultiProcessConsumer, self).__init__(
client, group, topic,