Skip to content

Commit 85efcd0

Browse files
committed
fix: reduce number of stac-loader redrives from 5 to 2
1 parent 3b9fc6f commit 85efcd0

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

lib/stac-loader/index.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ export class StacLoader extends Construct {
419419
visibilityTimeout: Duration.seconds(timeoutSeconds + 10),
420420
encryption: sqs.QueueEncryption.SQS_MANAGED,
421421
deadLetterQueue: {
422-
maxReceiveCount: 5,
422+
maxReceiveCount: 2,
423423
queue: this.deadLetterQueue,
424424
},
425425
});
@@ -431,7 +431,7 @@ export class StacLoader extends Construct {
431431

432432
// Subscribe the queue to the topic
433433
this.topic.addSubscription(
434-
new snsSubscriptions.SqsSubscription(this.queue)
434+
new snsSubscriptions.SqsSubscription(this.queue),
435435
);
436436

437437
// Create the lambda function
@@ -471,11 +471,11 @@ export class StacLoader extends Construct {
471471
new lambdaEventSources.SqsEventSource(this.queue, {
472472
batchSize: props.batchSize ?? 500,
473473
maxBatchingWindow: Duration.minutes(
474-
props.maxBatchingWindowMinutes ?? 1
474+
props.maxBatchingWindowMinutes ?? 1,
475475
),
476476
maxConcurrency: maxConcurrency,
477477
reportBatchItemFailures: true,
478-
})
478+
}),
479479
);
480480

481481
// Create outputs
@@ -513,7 +513,7 @@ export class StacItemLoader extends StacLoader {
513513
constructor(scope: Construct, id: string, props: StacLoaderProps) {
514514
console.warn(
515515
`StacItemLoader is deprecated. Please use StacLoader instead. ` +
516-
`StacItemLoader will be removed in a future version.`
516+
`StacItemLoader will be removed in a future version.`,
517517
);
518518

519519
super(scope, id, props);

0 commit comments

Comments
 (0)