Skip to content

Commit

Permalink
[gaarf-py] Re-raise InternalServer error when failed to get data from…
Browse files Browse the repository at this point in the history
… API

Change-Id: I23e245be4eebcfeb67b6c8a45f24682853db4c60
  • Loading branch information
AVMarkin committed Jun 7, 2023
1 parent d7e48e8 commit ae6dcce
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions py/gaarf/query_executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ def _parse_ads_response(
logger.error("Cannot fetch data from API for query '%s' %d times",
query_specification.query_title,
retry_failure.last_attempt.attempt_number)
raise exceptions.InternalServerError
if optimize_strategy in (OptimizeStrategy.BATCH,
OptimizeStrategy.BATCH_PROTOBUF):
logger.warning("Running gaarf in an optimized mode")
Expand Down

0 comments on commit ae6dcce

Please sign in to comment.