reset_job | R Documentation |
This function will reset the configuration of an existing job on Databricks.
reset_job( job_id = NULL, name = NULL, new_config, workspace, token = NULL, verbose = T )
job_id |
A number representing the unique identifier of a job on Databricks. |
name |
A string representing the name of the job. It is encouraged to choose a unique name for each job. |
new_config |
A JSON formatted string or file specifying the details of the job, i.e., the name, cluster spec, and so on. |
workspace |
A string representing the web workspace of your Databricks instance. E.g., "https://eastus2.azuredatabricks.net" or "https://demo.cloud.databricks.com". |
token |
A valid authentication token generated via User Settings in Databricks or via the Databricks REST API 2.0. If none is provided, netrc will be used. |
verbose |
If true, will pretty print the success or failure of the request. Defaults to TRUE. |
The API endpoint for creating a job is '2.0/jobs/create'. For all details on API calls please see the official documentation at https://docs.databricks.com/dev-tools/api/latest/.
The complete API response.
# JSON string or file path can be passed new_config <- "/configs/nightly_model_training.json" reset_job(job_id = 30198, new_config, workspace) # Reset by name reset_job(name = "My R Job", new_config, workspace, token = "dapi1908sfapf2")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.