File tree 1 file changed +7
-5
lines changed
1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -159,6 +159,11 @@ def _auto_commit(self):
159
159
if self .count_since_commit > self .auto_commit_every_n :
160
160
self .commit ()
161
161
162
+ def stop (self ):
163
+ if self .commit_timer is not None :
164
+ self .commit_timer .stop ()
165
+ self .commit ()
166
+
162
167
def pending (self , partitions = None ):
163
168
"""
164
169
Gets the pending message count
@@ -226,11 +231,6 @@ def provide_partition_info(self):
226
231
"""
227
232
self .partition_info = True
228
233
229
- def stop (self ):
230
- if self .commit_timer is not None :
231
- self .commit_timer .stop ()
232
- self .commit ()
233
-
234
234
def seek (self , offset , whence ):
235
235
"""
236
236
Alter the current offset in the consumer, similar to fseek
@@ -510,6 +510,8 @@ def stop(self):
510
510
proc .join ()
511
511
proc .terminate ()
512
512
513
+ super (MultiProcessConsumer , self ).stop ()
514
+
513
515
def __iter__ (self ):
514
516
"""
515
517
Iterator to consume the messages available on this consumer
You can’t perform that action at this time.
0 commit comments