Skip to content

Commit

Permalink
fix: add retries to dataset pipeline for failure and success handlers. (
Browse files Browse the repository at this point in the history
#4004)

* fix: add retries to dataset pipeline for failure and success handlers.

* fix typo
  • Loading branch information
Bento007 authored Jan 19, 2023
1 parent a58b1cc commit 4810f75
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .happy/terraform/modules/sfn/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -162,13 +162,25 @@ resource "aws_sfn_state_machine" "state_machine" {
"Type": "Task",
"InputPath": "$",
"Resource": "${var.lambda_success_handler}",
"End": true
"End": true,
"Retry": [ {
"ErrorEquals": ["Lambda.AWSLambdaException"],
"IntervalSeconds": 1,
"MaxAttempts": 3,
"BackoffRate": 2.0
} ]
},
"HandleErrors": {
"Type": "Task",
"InputPath": "$",
"Resource": "${var.lambda_error_handler}",
"End": true
"End": true,
"Retry": [ {
"ErrorEquals": ["Lambda.AWSLambdaException"],
"IntervalSeconds": 1,
"MaxAttempts": 3,
"BackoffRate": 2.0
} ]
}
}
}
Expand Down

0 comments on commit 4810f75

Please sign in to comment.