dubeejw commented on a change in pull request #209: exponential backoff on 
trigger fire retry
URL: 
https://github.com/apache/incubator-openwhisk-package-kafka/pull/209#discussion_r131224520
 
 

 ##########
 File path: provider/consumer.py
 ##########
 @@ -371,10 +369,11 @@ def __fireTrigger(self, messages):
                 if retry:
                     retry_count += 1
 
-                    if retry_count < self.max_retries:
+                    if retry_count <= self.max_retries:
+                        sleepyTime = pow(2,retry_count)
                         logging.info("[{}] Retrying in {} second(s)".format(
-                            self.trigger, self.retry_timeout))
-                        time.sleep(self.retry_timeout)
+                            self.trigger, sleepyTime))
 
 Review comment:
   Why a new line for this?
 
----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to