Skip to content

Commit efd55fd

Browse files
authored
fix(pipeline): increase beta /quote timeout (#1353)
1 parent 099e352 commit efd55fd

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

bin/stacks/routing-api-stack.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,7 @@ export class RoutingAPIStack extends cdk.Stack {
288288
} = new RoutingDatabaseStack(this, 'RoutingDatabaseStack', {})
289289

290290
const { routingLambda, routingLambdaAlias } = new RoutingLambdaStack(this, 'RoutingLambdaStack', {
291+
stage,
291292
poolCacheBucket,
292293
poolCacheBucket2,
293294
poolCacheBucket3,

bin/stacks/routing-lambda-stack.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,10 @@ import { Construct } from 'constructs'
1313
import * as path from 'path'
1414
import { DynamoDBTableProps } from './routing-database-stack'
1515
import { RetentionDays } from 'aws-cdk-lib/aws-logs'
16+
import { STAGE } from '../../lib/util/stage'
1617

1718
export 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

Comments
 (0)