File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ import { BasePartialBatchProcessor } from './BasePartialBatchProcessor.js';
13
13
* @template T The type of the batch processor, defaults to BasePartialBatchProcessor
14
14
* @property context The context object provided by the AWS Lambda runtime
15
15
* @property skipGroupOnError The option to group on error during processing
16
+ * @property throwOnFullBatchFailure The option to throw an error if the entire batch fails
16
17
*/
17
18
type BatchProcessingOptions < T = BasePartialBatchProcessor > = {
18
19
/**
@@ -25,6 +26,10 @@ type BatchProcessingOptions<T = BasePartialBatchProcessor> = {
25
26
* If true skip the group on error during processing.
26
27
*/
27
28
skipGroupOnError ?: T extends SqsFifoPartialProcessor ? boolean : never ;
29
+ /**
30
+ * Set this to false to prevent throwing an error if the entire batch fails.
31
+ */
32
+ throwOnFullBatchFailure ?: boolean ;
28
33
} ;
29
34
30
35
/**
You can’t perform that action at this time.
0 commit comments