abaruni commented on a change in pull request #214: WIP Support multiple workers
URL: 
https://github.com/apache/incubator-openwhisk-package-kafka/pull/214#discussion_r138933584
 
 

 ##########
 File path: provider/service.py
 ##########
 @@ -120,6 +131,12 @@ def run(self):
 
             logging.debug("[changes] I made it out of the changes loop!")
 
+    def __isTriggerDocAssignedToMe(self, doc):
+        if "worker" in doc:
+            return doc["worker"] == self.workerId
+        else:
+            return self.workerId == "worker0"
 
 Review comment:
   after speaking with @jasonpet this is the appropriate behavior. removed TODO 
comment
 
----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to