반응형
cloud event -> step function -> barch-crawler lambda function 으로 배치 스케줄 프로세스중
해당 람다함수에서 오류가 발생시 step function에서 retry 하는 설정이다.
"ResultAttempt1": {
"Type": "Task",
"Resource": "arn:aws:lambda:ap-northeast-2:457618053666:function:batch-crawler",
"Retry": [
{
"ErrorEquals": [
"States.ALL"
],
"IntervalSeconds": 1,
"MaxAttempts": 2,
"BackoffRate": 1
}
],
"Next": "WaitSeconds2"
각 키값의 대한 설명은 아래를 참조한다.
https://docs.aws.amazon.com/ko_kr/step-functions/latest/dg/concepts-error-handling.html
Step Functions 처리 - AWS Step Functions
ResultPath 필드를 지정하지 않으면, 기본값이 $로 설정되며 전체 입력을 선택하여 덮어씁니다.
docs.aws.amazon.com
반응형
'DevOps > AWS' 카테고리의 다른 글
[serverless] : serverless error: eperm: operation not permitted, unlink (0) | 2021.11.08 |
---|---|
[serverless] - For debugging logs, run again after setting the "SLS_DEBUG=*" environment variable. (0) | 2021.11.08 |
AWS Community Day Online (0) | 2021.10.26 |
gather town (0) | 2021.10.24 |
ECR 등록 절차 (0) | 2021.08.05 |