@@ -13,8 +13,10 @@ import { Construct } from 'constructs'
1313import * as path from 'path'
1414import { DynamoDBTableProps } from './routing-database-stack'
1515import { RetentionDays } from 'aws-cdk-lib/aws-logs'
16+ import { STAGE } from '../../lib/util/stage'
1617
1718export interface RoutingLambdaStackProps extends cdk . NestedStackProps {
19+ stage : string
1820 poolCacheBucket : aws_s3 . Bucket
1921 poolCacheBucket2 : aws_s3 . Bucket
2022 poolCacheBucket3 : aws_s3 . Bucket
@@ -48,6 +50,7 @@ export class RoutingLambdaStack extends cdk.NestedStack {
4850 constructor ( scope : Construct , name : string , props : RoutingLambdaStackProps ) {
4951 super ( scope , name , props )
5052 const {
53+ stage,
5154 poolCacheBucket,
5255 poolCacheBucket2,
5356 poolCacheBucket3,
@@ -172,7 +175,8 @@ export class RoutingLambdaStack extends cdk.NestedStack {
172175 // 11/8/23: URA currently calls the Routing API with a timeout of 10 seconds.
173176 // Set this lambda's timeout to be slightly lower to give them time to
174177 // log the response in the event of a failure on our end.
175- timeout : cdk . Duration . seconds ( 9 ) ,
178+ // Beta uses a higher timeout to allow for more thorough routing exploration.
179+ timeout : cdk . Duration . seconds ( stage === STAGE . BETA ? 18 : 9 ) ,
176180 memorySize : 5120 ,
177181 deadLetterQueueEnabled : true ,
178182 bundling : {
0 commit comments