Skip to content

Commit

Permalink
Use the correct timeout for save articles lambda
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobwinch committed Jun 8, 2022
1 parent b56b3ae commit 6e0aa90
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cdk/lib/__snapshots__/mobile-save-for-later.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -1401,7 +1401,7 @@ Object {
"Value": "CODE",
},
],
"Timeout": 30,
"Timeout": 60,
},
"Type": "AWS::Lambda::Function",
},
Expand Down Expand Up @@ -2978,7 +2978,7 @@ Object {
"Value": "PROD",
},
],
"Timeout": 30,
"Timeout": 60,
},
"Type": "AWS::Lambda::Function",
},
Expand Down
1 change: 1 addition & 0 deletions cdk/lib/mobile-save-for-later.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ export class MobileSaveForLater extends GuStack {
{
handler: "com.gu.sfl.lambda.SaveArticlesLambda::handleRequest",
functionName: `mobile-save-for-later-SAVE-cdk-${this.stage}`,
timeout: Duration.seconds(60),
environment: {
...commonEnvironmentVariables,
SavedArticleLimit: "1000",
Expand Down

0 comments on commit 6e0aa90

Please sign in to comment.