File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -106,6 +106,9 @@ class FastPurgeClient(object):
106106 MAX_RETRIES = int (os .environ .get ("FAST_PURGE_MAX_RETRIES" , "10" ))
107107
108108 RETRY_BACKOFF = float (os .environ .get ("FAST_PURGE_RETRY_BACKOFF" , "0.15" ))
109+ RETRY_BACKOFF_MAX = float (os .environ .get ("FAST_PURGE_RETRY_BACKOFF_MAX" , "150" ))
110+ RETRY_BACKOFF_JITTER = float (os .environ .get ("FAST_PURGE_RETRY_JITTER" , "2" ))
111+
109112 # Default purge type.
110113 # Akamai recommend "invalidate", so why is "delete" our default?
111114 # Here's what Akamai docs have to say:
@@ -235,6 +238,8 @@ def __retry_policy(self):
235238 retries = LoggingRetry (
236239 total = self .MAX_RETRIES ,
237240 backoff_factor = self .RETRY_BACKOFF ,
241+ backoff_max = self .RETRY_BACKOFF_MAX ,
242+ backoff_jitter = self .RETRY_BACKOFF_JITTER ,
238243 # We strictly require 201 here since that's how the server
239244 # tells us we queued something async, as expected
240245 status_forcelist = [status .value for status in HTTPStatus
You can’t perform that action at this time.
0 commit comments