Skip to content

Commit a43bbdb

Browse files
Addressing Mathieu's feedback
1 parent 6ad583b commit a43bbdb

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

aws_lambda_powertools/utilities/batch/sqs_fifo_partial_processor.py

+7-2
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,13 @@ def __init__(self, model: Optional["BatchSqsTypeModel"] = None, skip_group_on_er
7878

7979
def process(self) -> List[Tuple]:
8080
"""
81-
Call instance's handler for each record. When the first failed message is detected,
82-
the process is short-circuited, and the remaining messages are reported as failed items.
81+
Call instance's handler for each record.
82+
83+
If skip_group_on_error is set to False, the process short-circuits upon detecting the first failed message,
84+
and the remaining messages are reported as failed items.
85+
86+
If skip_group_on_error is set to True, upon encountering the first failed message for a specific MessageGroupID,
87+
all messages from that MessageGroupID are skipped and reported as failed items.
8388
"""
8489
result: List[Tuple] = []
8590
skip_message_ids: List = []

0 commit comments

Comments
 (0)