We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 12d3be8 commit be89061Copy full SHA for be89061
aws_lambda_powertools/utilities/idempotency/base.py
@@ -167,7 +167,7 @@ def _process_idempotency(self, is_replay: bool):
167
# We give preference to ReturnValuesOnConditionCheckFailure because it is a faster and more cost-effective
168
# way of retrieving the existing record after a failed conditional write operation.
169
record = exc.old_data_record or self._get_idempotency_record()
170
- if is_replay:
+ if is_replay and record is not None and record.status == "INPROGRESS":
171
return self._get_function_response()
172
# If a record is found, handle it for status
173
if record:
0 commit comments