Skip to content
This repository has been archived by the owner on Jul 13, 2023. It is now read-only.

Commit

Permalink
feat: spread monthly rotation retry over 30 minutes (#726)
Browse files Browse the repository at this point in the history
Increases random interval for rotation reschedule to  30 minutes.

Closes #723
  • Loading branch information
bbangert authored Nov 8, 2016
1 parent 94ad8cf commit 7c08459
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autopush/websocket.py
Original file line number Diff line number Diff line change
Expand Up @@ -1052,7 +1052,7 @@ def error_monthly_rotation_overload(self, fail):
"""
fail.trap(ProvisionedThroughputExceededException)
self.transport.resumeProducing()
d = self.deferToLater(randrange(1, 60), self.process_notifications)
d = self.deferToLater(randrange(1, 30*60), self.process_notifications)
d.addErrback(self.trap_cancel)

def _send_ping(self):
Expand Down

0 comments on commit 7c08459

Please sign in to comment.