The entrypoint
key defines how your code should be run
entrypoint
key should contain a set of key-value pairs that describe how your
code should be accessed in your cloud infrastructure. Different entrypoints will have
slightly different acceptable key-value pairs; however, they all must have type
value.
entrypoint
does not contain a type
, then Alto will throw an error!type: script
src
: the directory containing the script to execute. This directory should be
specified relative to the configuration YAML. This is an optional field.cmd
: the command used to execute the script, e.g., python main.py
.type: function
src
: the directory containing the script to execute. This directory should be
specified relative to the configuration YAML. This is an optional field.cmd
: the command used to execute the script, formatted as <module_name>.<function_name>
kwargs
: the function’s keyword arguments formatted as a set of key-value pairs.type: jupyter
src
: the directory containing the script to execute. This directory should be
specified relative to the configuration YAML. This is an optional field.cmd
: the notebook to execute, formatted as <notebook_name>.ipynb
kernel
: the Jupyter runtime environment. The default is python3
params
: the notebooks parameters formatted as a set of key-value pairs. Notebooks
can be parametrized with Papermill! Check out the documentation here.