Instantly share code, notes, and snippets.

Embed
What would you like to do?
a Lambda that calls the Lambda runtime from with
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'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment