Skip to content

Commit

Permalink
Merge pull request #688 from yandex/master
Browse files Browse the repository at this point in the history
up to Master
  • Loading branch information
fomars committed Dec 6, 2018
2 parents 4b6aea9 + f39a2d0 commit f0e72f9
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 f0e72f9

Please sign in to comment.