reset_job: Reset the configuration of a Job on Databricks

View source: R/reset_job.R

reset_jobR Documentation

Reset the configuration of a Job on Databricks

Description

This function will reset the configuration of an existing job on Databricks.

Usage

reset_job(
  job_id = NULL,
  name = NULL,
  new_config,
  workspace,
  token = NULL,
  verbose = T
)

Arguments

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.

Details

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/.

Value

The complete API response.

Examples

# 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")

RafiKurlansik/bricksteR documentation built on Oct. 13, 2022, 6:58 a.m.