Skip to content

Commit

Permalink
fix: set queue visibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Alan Shaw committed Oct 26, 2023
1 parent 4083b42 commit 0a34e74
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions stacks/billing-stack.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { use, Cron, Queue, Function, Config } from '@serverless-stack/resources'
import { StartingPosition } from 'aws-cdk-lib/aws-lambda'
import { Duration } from 'aws-cdk-lib'
import { UcanInvocationStack } from './ucan-invocation-stack.js'
import { BillingDbStack } from './billing-db-stack.js'
import { UploadDbStack } from './upload-db-stack.js'
import { setupSentry, getKinesisEventSourceConfig } from './config.js'
import { Duration } from 'aws-cdk-lib'

/** @param {import('@serverless-stack/resources').StackContext} props */
export function BillingStack ({ stack, app }) {
Expand Down Expand Up @@ -42,7 +42,8 @@ export function BillingStack ({ stack, app }) {
consumer: {
function: spaceBillingQueueHandler,
cdk: { eventSource: { batchSize: 1 } }
}
},
cdk: { queue: { visibilityTimeout: Duration.minutes(15) } }
})

// Lambda that does a billing run for a given customer
Expand All @@ -67,7 +68,8 @@ export function BillingStack ({ stack, app }) {
consumer: {
function: customerBillingQueueHandler,
cdk: { eventSource: { batchSize: 1 } }
}
},
cdk: { queue: { visibilityTimeout: Duration.minutes(15) } }
})

// Lambda that queues account DIDs to be billed
Expand Down

0 comments on commit 0a34e74

Please sign in to comment.