Skip to content

Commit a37340e

Browse files
committed
increment the retries
1 parent 5a93926 commit a37340e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

kbcstorage/jobs.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ def block_until_completed(self, job_id):
116116
job = self.detail(job_id)
117117
if job['status'] in ('error', 'success'):
118118
return job
119+
retries += 1
119120
time.sleep(min(2 ** retries, 20))
120121

121122
def block_for_success(self, job_id):

0 commit comments

Comments
 (0)