Home > @aws/durable-execution-sdk-js > BatchResult
Result of a batch operation (map, parallel, or concurrent execution)
Signature:
export interface BatchResult<TResult>|
Property |
Modifiers |
Type |
Description |
|---|---|---|---|
|
Array<BatchItem<TResult>> |
All items in the batch with their results/errors | ||
|
"ALL_COMPLETED" | "MIN_SUCCESSFUL_REACHED" | "FAILURE_TOLERANCE_EXCEEDED" |
Reason why the batch completed | ||
|
number |
Number of failed items | ||
|
boolean |
Whether any item in the batch failed | ||
|
number |
Number of started but not completed items | ||
|
Overall status of the batch (SUCCEEDED if no failures, FAILED otherwise) | |||
|
number |
Number of successful items | ||
|
number |
Total number of items |
|
Method |
Description |
|---|---|
|
Returns only the items that failed | |
|
Returns array of all errors | |
|
Returns array of all successful results | |
|
Returns only the items that are still in progress | |
|
Returns only the items that succeeded | |
|
Throws the first error if any item failed |