Docs: Correction of code sample using idempotent_function in combination with Batch utility #1745
Closed
1 task done
Labels
documentation
Improvements or additions to documentation
What were you searching in the docs?
I was looking into ways to combine Idempotency utility and Batch utility.
Is this related to an existing documentation section?
https://awslabs.github.io/aws-lambda-powertools-python/2.3.1/utilities/idempotency/#idempotent_function-decorator
How can we improve?
The code sample using
batch_processor
decorator has the following calling order, wheresave_inprogress
is called beforeregister_lambda_context
is called.batch_processor -> idempotent_function -> save_inprogress -> record_handler -> idempotent_function -> save_inprogress -> dummy -> register_lambda_context
Got a suggestion in mind?
Shouldn't we change to using context manager instead of decorator?
Also, shouldn't the dummy call be after register_lambda_context?
Acknowledgment
The text was updated successfully, but these errors were encountered: