Important

Helios features are now enabled during weekly update windows and are no longer directly tied to SingleStore engine releases. Refer to the release notes to view the latest features available in your Helios cluster.

RUN JOB USING NOTEBOOK

The RUN JOB USING NOTEBOOK command creates a notebook job that immediately runs the specified notebook in a Stage using the specified runtime and parameters.

Syntax

RUN JOB USING NOTEBOOK '<notebook_path>'
    [ WITH RUNTIME '<runtime_name>' ]
    [ WITH PARAMETERS <param_json> ]

Arguments

  • notebook_path: Path in the Stage where the notebook file is stored.

  • runtime_name: Name of the runtime the scheduled job is run with.

  • param_json: The parameters passed to the job in JSON format, for example, {"<paramName>": "<paramValue>", ... }. It only supports string, integer, float, and boolean type values.

Remarks

  • The scheduled notebook job is run immediately after the RUN JOB USING NOTEBOOK command is run.

Example

The following command creates a scheduled job that runs a notebook named example_notebook.ipynb using the notebooks-cpu-small runtime:

RUN JOB USING NOTEBOOK 'example_notebook.ipynb'
WITH RUNTIME 'notebooks-cpu-small'
WITH PARAMETERS {
"strParam": "string",
"intParam": 1,
"floatParam": 1.0,
"boolParam": true
}

Last modified:

Was this article helpful?