You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by gi...@git.apache.org on 2017/06/07 15:23:34 UTC

[GitHub] bjustin-ibm commented on a change in pull request #178: convert from threading to multiprocessing

bjustin-ibm commented on a change in pull request #178: convert from threading to multiprocessing
URL: https://github.com/apache/incubator-openwhisk-package-kafka/pull/178#discussion_r120658105
 
 

 ##########
 File path: provider/consumer.py
 ##########
 @@ -213,6 +205,8 @@ def run(self):
                 if len(messages) > 0:
                     self.__fireTrigger(messages)
 
+                time.sleep(0.1)
 
 Review comment:
   I believe this may significantly reduce the CPU usage of an idle Consumer. Without a nice little pause, this loop is always running the CPU as hard as possible.
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services