Skip to content

Commit de5d756

Browse files
Adding docstring
1 parent f8a7390 commit de5d756

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

aws_lambda_powertools/utilities/batch/sqs_fifo_partial_processor.py

+11
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,17 @@ def lambda_handler(event, context: LambdaContext):
5858
)
5959

6060
def __init__(self, model: Optional["BatchSqsTypeModel"] = None, return_on_first_error: bool = True):
61+
"""
62+
Initialize the SqsFifoProcessor.
63+
64+
Parameters
65+
----------
66+
model: Optional["BatchSqsTypeModel"]
67+
An optional model for batch processing.
68+
return_on_first_error: bool
69+
Flag to determine whether to return on the first error encountered. Default is True
70+
71+
"""
6172
self.return_on_first_error = return_on_first_error
6273
super().__init__(EventType.SQS, model)
6374

0 commit comments

Comments
 (0)