-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Add statemachine to update nyt articles and their links to assets - Fix bug on nyt links - Clean template.yaml
- Loading branch information
1 parent
738ee9a
commit 591cb3c
Showing
4 changed files
with
194 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ | ||
"Comment": "State machine to update NYT articles and links", | ||
"StartAt": "UpdateNytArticles", | ||
"States": { | ||
"UpdateNytArticles": { | ||
"Type": "Task", | ||
"Resource": "${UpdateNytArticlesFunctionArn}", | ||
"Next": "UpdateNytLinks", | ||
"Retry": [ | ||
{ | ||
"ErrorEquals": ["States.ALL"], | ||
"IntervalSeconds": 1, | ||
"MaxAttempts": 3, | ||
"BackoffRate": 2.0 | ||
} | ||
] | ||
}, | ||
"UpdateNytLinks": { | ||
"Type": "Task", | ||
"Resource": "${UpdateNytLinksFunctionArn}", | ||
"End": true, | ||
"Retry": [ | ||
{ | ||
"ErrorEquals": ["States.ALL"], | ||
"IntervalSeconds": 1, | ||
"MaxAttempts": 3, | ||
"BackoffRate": 2.0 | ||
} | ||
] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters