Skip to content

Conversation

douglasmuraoka
Copy link
Contributor

Adds the Python v2 and v3 runtimes into Core plugin. Both are registered on the RuntimeController with the name Python.
Also adds a .py function template, which receives parameters from GraphQL fields, and makes a GET request to execute a query on Wikipedia.

Added support for runtimes with multiple versions.
Now runtimes must have the `version` attribute defined in order to be supported by the framework.
The `runtime add`, `runtime remove` CLI commands now requires the `version` argument, in order to manipulate the correct runtime instance.
The `function add` command can now receive the `runtimeVersion` argument, which allows users to specify the version of the runtime that will execute the created function.
The `runtime ls` CLI command shows the runtime version and which runtimes are the defaults.
The `RuntimeController` API has changed as well. The `getRuntime` function can now receive the `version` parameter, which when defined, tries to retrieve the runtime with this specific version. If not defined, returns the default version of the given runtime `name`.
Adds the `args` attribute on function definition, which allows users to defined fixed arguments to the function when executed.
It is useful for defining the main class, for instance, when executing Java functions inside JAR files.
Adds the Python v2 and v3 runtimes into Core plugin. Both are registered on the `RuntimeController` with the name `Python`.
Also adds a Python function template, which receives parameters from GraphQL fields, and makes a GET request to execute a query on Wikipedia.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant