Merge pull request #23626 from EricByers/patch-1

Update sqs-consumer Add terminateVisibilityTimeout
This commit is contained in:
Daniel Rosenwasser
2018-02-13 16:45:45 -08:00
committed by GitHub
2 changed files with 4 additions and 2 deletions
+2 -1
View File
@@ -1,4 +1,4 @@
// Type definitions for sqs-consumer 3.7
// Type definitions for sqs-consumer 3.8
// Project: https://github.com/BBC/sqs-consumer
// Definitions by: Daniel Chao <http://dchao.co/>
// Eric Byers <http://github.com/EricByers>
@@ -19,6 +19,7 @@ declare namespace Consumer {
messageAttributeNames?: string[];
batchSize?: number;
visibilityTimeout?: number;
terminateVisibilityTimeout?: boolean;
waitTimeSeconds?: number;
authenticationErrorTimeout?: number;
sqs?: SQS;
+2 -1
View File
@@ -17,7 +17,8 @@ const app2 = Consumer.create({
region: "us-west-1",
batchSize: 15,
visibilityTimeout: 50,
waitTimeSeconds: 50
waitTimeSeconds: 50,
terminateVisibilityTimeout: true
});
// Test message handler.