Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import time
- import runtime as lambda_runtime
- def send_report_end(event, context):
- """
- A Lambda that calls report_done from within the code
- """
- print "Beginning"
- lambda_runtime.report_done(context.aws_request_id, None, 'Success', 0)
- time.sleep(1)
- print "After first done"
- lambda_runtime.report_done(context.aws_request_id, None, 'Success', 0)
- time.sleep(1)
- print "After second done"
- lambda_runtime.report_done(context.aws_request_id, None, 'Success', 0)
- time.sleep(1)
- print "Now really done"
- return 'Success'
Add Comment
Please, Sign In to add comment