Guest User

Untitled

a guest
Apr 22nd, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. import time
  2. import runtime as lambda_runtime
  3.  
  4. def send_report_end(event, context):
  5. """
  6. A Lambda that calls report_done from within the code
  7. """
  8. print "Beginning"
  9. lambda_runtime.report_done(context.aws_request_id, None, 'Success', 0)
  10. time.sleep(1)
  11.  
  12. print "After first done"
  13. lambda_runtime.report_done(context.aws_request_id, None, 'Success', 0)
  14. time.sleep(1)
  15.  
  16. print "After second done"
  17. lambda_runtime.report_done(context.aws_request_id, None, 'Success', 0)
  18. time.sleep(1)
  19.  
  20. print "Now really done"
  21. return 'Success'
Add Comment
Please, Sign In to add comment