File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -83,7 +83,8 @@ If you now try and run:
8383 (lambduh) $ lambda invoke
8484 # 5.858
8585
86- # your code completed in: 0.00000310s
86+ # execution time: 0.00000310s
87+ # function execution timeout: 15s
8788
8889 As you probably put together, the ``lambda invoke `` command grabs the values stored in the ``event.json `` file and passes them to your function.
8990
Original file line number Diff line number Diff line change @@ -82,8 +82,11 @@ def invoke(src, alt_event=None):
8282 results = fn (event , None )
8383 end = time .time ()
8484 elapsed = end - start
85+ timeout = cfg .get ('timeout' , 15 )
86+
8587 print ("{0}" .format (results ))
86- print ("\n your code completed in: {:.8f}s" .format (elapsed ))
88+ print ("\n execution time: {:.8f}s\n function execution "
89+ "timeout: {:2}s" .format (elapsed , timeout ))
8790
8891
8992def init (src , minimal = False ):
You can’t perform that action at this time.
0 commit comments