Skip to content

Commit ff85d0c

Browse files
Adding comment
1 parent f3b049b commit ff85d0c

File tree

1 file changed

+1
-2
lines changed
  • aws_lambda_powertools/utilities/idempotency/persistence

1 file changed

+1
-2
lines changed

aws_lambda_powertools/utilities/idempotency/persistence/base.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -303,8 +303,7 @@ def save_inprogress(self, data: Dict[str, Any], remaining_time_in_millis: Option
303303

304304
# When Lambda kills the container after timeout, the remaining_time_in_millis is 0, which is considered False.
305305
# Therefore, we need to check if remaining_time_in_millis is not None (>=0) to handle this case.
306-
# See:
307-
306+
# See: https://github.com/aws-powertools/powertools-lambda-python/issues/4759
308307
if remaining_time_in_millis is not None:
309308
now = datetime.datetime.now()
310309
period = datetime.timedelta(milliseconds=remaining_time_in_millis)

0 commit comments

Comments
 (0)