Sha256: 045f11fb17aa13916f865a3a611d7855e87c101361c2b43e37a3ba8f685516f8
Contents?: true
Size: 522 Bytes
Versions: 15
Compression:
Stored size: 522 Bytes
Contents
class Jets::Poly class PythonExecutor < BaseExecutor # Code for wrapper script that mimics lambda execution. Wrapper script usage: # # python WRAPPER_SCRIPT EVENT # # Example: # # python /tmp/jets/demo/executor/20180804-12816-imqb9/lambda_executor.py '{}' def code <<-EOL import sys import json from #{@definition.meth} import #{handler} event = json.loads(sys.argv[1]) context = {} resp = #{handler}(event, context) result = json.dumps(resp) print(result) EOL end end end
Version data entries
15 entries across 15 versions & 1 rubygems