From a37340e7d2f3c9ae03af175722e17549afc8208c Mon Sep 17 00:00:00 2001 From: marc Date: Thu, 19 Aug 2021 14:16:34 +0200 Subject: [PATCH] increment the retries --- kbcstorage/jobs.py | 1 + 1 file changed, 1 insertion(+) diff --git a/kbcstorage/jobs.py b/kbcstorage/jobs.py index 74fe796..71a6f2a 100644 --- a/kbcstorage/jobs.py +++ b/kbcstorage/jobs.py @@ -116,6 +116,7 @@ def block_until_completed(self, job_id): job = self.detail(job_id) if job['status'] in ('error', 'success'): return job + retries += 1 time.sleep(min(2 ** retries, 20)) def block_for_success(self, job_id):