File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -43,6 +43,7 @@ def retrying(i, num_retries=3):
43
43
44
44
for i in range (num_retries ):
45
45
try :
46
+ logging .debug ("Attempting to {} (attempt {} of {})" .format (description , i + 1 , num_retries ))
46
47
this_res = func ()
47
48
if not this_res .ok :
48
49
logging .warning ("Request not OK when {}: {}: {}" .format (description , this_res , this_res .text ))
@@ -55,6 +56,7 @@ def retrying(i, num_retries=3):
55
56
logging .warning ("Exception raised when {}: {}" .format (description , e ))
56
57
logging .warning ("Sleeping for {} seconds before retrying" .format (sleep_time ))
57
58
time .sleep (60 )
59
+ logging .debug ("Finished sleeping, potentially retrying" )
58
60
retrying (i )
59
61
raise Exception ("Failed to {} after {} attempts" .format (description , num_retries ))
60
62
You can’t perform that action at this time.
0 commit comments