Sha256: 8fff745a5746e2d4af60ae25e3004136de6987734581f0ceb68208f52d58b064

Contents?: true

Size: 519 Bytes

Versions: 255

Compression:

Stored size: 519 Bytes

Contents

class Jets::PolyFun
  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 #{@task.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

255 entries across 255 versions & 4 rubygems

Version Path
jets-4.0.12 lib/jets/poly_fun/python_executor.rb
jets-4.0.11 lib/jets/poly_fun/python_executor.rb
jets-4.0.10 lib/jets/poly_fun/python_executor.rb
jets-4.0.9 lib/jets/poly_fun/python_executor.rb
jets-4.0.8 lib/jets/poly_fun/python_executor.rb
jets-4.0.7 lib/jets/poly_fun/python_executor.rb
jets-4.0.6 lib/jets/poly_fun/python_executor.rb
jets-4.0.5 lib/jets/poly_fun/python_executor.rb
jets-4.0.4 lib/jets/poly_fun/python_executor.rb
jets-4.0.3 lib/jets/poly_fun/python_executor.rb
jets-4.0.2 lib/jets/poly_fun/python_executor.rb
jets-4.0.1 lib/jets/poly_fun/python_executor.rb
jets-4.0.0 lib/jets/poly_fun/python_executor.rb
jets-3.2.2 lib/jets/poly_fun/python_executor.rb
jets-3.2.1 lib/jets/poly_fun/python_executor.rb
jets.benforeva-3.0.17.pre.mount.pre.fix lib/jets/poly_fun/python_executor.rb
jets-3.2.0 lib/jets/poly_fun/python_executor.rb
jets-3.1.5 lib/jets/poly_fun/python_executor.rb
jets-3.1.4 lib/jets/poly_fun/python_executor.rb
jets-3.1.3 lib/jets/poly_fun/python_executor.rb