Skip to content

Commit

Permalink
handle throttlin exception, increase timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
joelbalcaen committed May 1, 2024
1 parent 6e4ab33 commit ce2ae1e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lambdas/bedrock_invoker/lambda.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
locals {
lambda_function_name = "levio-esta-bedrock-invoker"
timeout = 300
timeout = 600
runtime = "python3.11"
powertools_layer_arn = "arn:aws:lambda:${var.aws_region}:017000801446:layer:AWSLambdaPowertoolsPythonV2:67"
}
Expand Down
8 changes: 5 additions & 3 deletions state_machines/rfp_email_form_fill/state_machine.json
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,12 @@
"Lambda.ServiceException",
"Lambda.AWSLambdaException",
"Lambda.SdkClientException",
"Lambda.TooManyRequestsException"
"Lambda.TooManyRequestsException",
"ThrottlingException"
],
"IntervalSeconds": 1,
"MaxAttempts": 3
"MaxAttempts": 4,
"IntervalSeconds": 60,
"JitterStrategy": "FULL"
}
],
"Type": "Task",
Expand Down

0 comments on commit ce2ae1e

Please sign in to comment.