Skip to content

Commit

Permalink
Merge branch 'master' into dependabot/npm_and_yarn/src/aws-lambda/mpa…
Browse files Browse the repository at this point in the history
…rticle-personalize/npm_and_yarn-6c2328fa7d
  • Loading branch information
BastLeblanc authored Dec 11, 2024
2 parents 17294f3 + 9fd995a commit f61ec6e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions aws/cloudformation-templates/deployment-support.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -203,16 +203,17 @@ Resources:
# exit while, success.
break
except URLError as e:
error = e
retries += 1
print(f"Request failed. Retrying in 30 seconds... (Attempt {retries}/{max_retries})")
print(f"Error: {e}")
time.sleep(30)
#
if retries >= max_retries:
logger.error(f"Error calling product service init: {e.code} : {e.reason}")
logger.error(f"Error calling product service init: {error.reason}")
response_status = cfnresponse.FAILED
response_data['Message'] = f"Resource {event['RequestType']} failed: {e}"
response_data['Message'] = f"Resource {event['RequestType']} failed: {error}"
cfnresponse.send(event, context, response_status, response_data)
Expand Down

0 comments on commit f61ec6e

Please sign in to comment.