Skip to content
This repository was archived by the owner on Jun 13, 2023. It is now read-only.

Latest commit

 

History

History
30 lines (22 loc) · 2.49 KB

File metadata and controls

30 lines (22 loc) · 2.49 KB

NotebookTask

Properties

Name Type Description Notes
notebook_path str The path of the notebook to be run in the Azure Databricks workspace or remote repository. For notebooks stored in the Databricks workspace, the path must be absolute and begin with a slash. For notebooks stored in a remote repository, the path must be relative. This field is required.
source str Optional location type of the notebook. When set to `WORKSPACE`, the notebook will be retrieved from the local Azure Databricks workspace. When set to `GIT`, the notebook will be retrieved from a Git repository defined in `git_source`. If the value is empty, the task will use `GIT` if `git_source` is defined and `WORKSPACE` otherwise. [optional]
base_parameters Dict[str, object] Base parameters to be used for each run of this job. If the run is initiated by a call to `run-now` with parameters specified, the two parameters maps are merged. If the same key is specified in `base_parameters` and in `run-now`, the value from `run-now` is used. Use Task parameter variables to set parameters containing information about job runs. If the notebook takes a parameter that is not specified in the job’s `base_parameters` or the `run-now` override parameters, the default value from the notebook is used. Retrieve these parameters in a notebook using dbutils.widgets.get. [optional]

Example

from databricks_jobs.models.notebook_task import NotebookTask

# TODO update the JSON string below
json = "{}"
# create an instance of NotebookTask from a JSON string
notebook_task_instance = NotebookTask.from_json(json)
# print the JSON string representation of the object
print NotebookTask.to_json()

# convert the object into a dict
notebook_task_dict = notebook_task_instance.to_dict()
# create an instance of NotebookTask from a dict
notebook_task_form_dict = notebook_task.from_dict(notebook_task_dict)

[Back to Model list] [Back to API list] [Back to README]