Created
June 21, 2016 14:06
-
-
Save emmettbutler/172df53576522f52ebd1e3fff30748f4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
try: | |
msg = self.consumer.consume() | |
except ConsumerStoppedException: | |
self.consumer.stop() | |
log.info('Restarting stopped pykafka consumer') | |
self.consumer.start() | |
msg = self.consumer.consume() | |
if not msg or not msg.value: | |
continue |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment