Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import time
- import runtime as lambda_runtime
- def reset_timeout(event, context):
- """
- A lambda resetting its timeout by calling lambda_runtime.report_done
- """
- print "Remaining time: ", context.get_remaining_time_in_millis()
- time.sleep(10)
- print "Remaining time: ", context.get_remaining_time_in_millis()
- lambda_runtime.report_done(context.aws_request_id, None, 'Success', 0)
- time.sleep(0.1)
- print "Remaining time: ", context.get_remaining_time_in_millis()
Add Comment
Please, Sign In to add comment