Skip to content

Commit

Permalink
Merge pull request #686 from fomars/release
Browse files Browse the repository at this point in the history
Release
  • Loading branch information
fomars committed Nov 28, 2018
2 parents 4a1f875 + 62703b4 commit 15a74d3
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions yandextank/plugins/DataUploader/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,14 +206,17 @@ def __make_api_request(
else:
break
except self.UnderMaintenance as e:
try:
timeout = next(maintenance_timeouts)
logger.warn(maintenance_msg)
logger.warn("Retrying in %ss..." % timeout)
time.sleep(timeout)
continue
except StopIteration:
raise e
if not self.core_interrupted.is_set():
try:
timeout = next(maintenance_timeouts)
logger.warn(maintenance_msg)
logger.warn("Retrying in %ss..." % timeout)
time.sleep(timeout)
continue
except StopIteration:
raise e
else:
break

def __make_writer_request(
self,
Expand Down

0 comments on commit 15a74d3

Please sign in to comment.