Skip to content

Commit ec13b69

Browse files
authoredOct 29, 2020
Change default DLQ message retention to 14 days (#93)
1 parent 66b9f10 commit ec13b69

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed
 

‎packages/bus-sqs/src/sqs-transport.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,10 @@ export class SqsTransport implements Transport<SQS.Message> {
172172

173173
private async assertServiceQueue (): Promise<void> {
174174
await this.assertSqsQueue(
175-
this.sqsConfiguration.deadLetterQueueName
175+
this.sqsConfiguration.deadLetterQueueName,
176+
{
177+
MessageRetentionPeriod: '1209600' // 14 Days
178+
}
176179
)
177180

178181
const serviceQueueAttributes: QueueAttributeMap = {

0 commit comments

Comments
 (0)
Please sign in to comment.