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

Latest commit

 

History

History
39 lines (31 loc) · 5.85 KB

JobsRunsRepairRequest.md

File metadata and controls

39 lines (31 loc) · 5.85 KB

JobsRunsRepairRequest

Properties

Name Type Description Notes
run_id int The job run ID of the run to repair. The run must not be in progress. [optional]
rerun_tasks List[str] The task keys of the task runs to repair. [optional]
latest_repair_id int The ID of the latest repair. This parameter is not required when repairing a run for the first time, but must be provided on subsequent requests to repair the same run. [optional]
rerun_all_failed_tasks bool If true, repair all failed tasks. Only one of rerun_tasks or rerun_all_failed_tasks can be used. [optional] [default to False]
jar_params List[str] A list of parameters for jobs with Spark JAR tasks, for example `"jar_params": ["john doe", "35"]`. The parameters are used to invoke the main function of the main class specified in the Spark JAR task. If not specified upon `run-now`, it defaults to an empty list. jar_params cannot be specified in conjunction with notebook_params. The JSON representation of this field (for example `{"jar_params":["john doe","35"]}`) cannot exceed 10,000 bytes. Use Task parameter variables to set parameters containing information about job runs. [optional]
notebook_params Dict[str, object] A map from keys to values for jobs with notebook task, for example `"notebook_params": {"name": "john doe", "age": "35"}`. The map is passed to the notebook and is accessible through the dbutils.widgets.get function. If not specified upon `run-now`, the triggered run uses the job’s base parameters. notebook_params cannot be specified in conjunction with jar_params. Use Task parameter variables to set parameters containing information about job runs. The JSON representation of this field (for example `{"notebook_params":{"name":"john doe","age":"35"}}`) cannot exceed 10,000 bytes. [optional]
python_params List[str] A list of parameters for jobs with Python tasks, for example `"python_params": ["john doe", "35"]`. The parameters are passed to Python file as command-line parameters. If specified upon `run-now`, it would overwrite the parameters specified in job setting. The JSON representation of this field (for example `{"python_params":["john doe","35"]}`) cannot exceed 10,000 bytes. Use Task parameter variables to set parameters containing information about job runs. Important These parameters accept only Latin characters (ASCII character set). Using non-ASCII characters returns an error. Examples of invalid, non-ASCII characters are Chinese, Japanese kanjis, and emojis. [optional]
spark_submit_params List[str] A list of parameters for jobs with spark submit task, for example `"spark_submit_params": ["--class", "org.apache.spark.examples.SparkPi"]`. The parameters are passed to spark-submit script as command-line parameters. If specified upon `run-now`, it would overwrite the parameters specified in job setting. The JSON representation of this field (for example `{"python_params":["john doe","35"]}`) cannot exceed 10,000 bytes. Use Task parameter variables to set parameters containing information about job runs. Important These parameters accept only Latin characters (ASCII character set). Using non-ASCII characters returns an error. Examples of invalid, non-ASCII characters are Chinese, Japanese kanjis, and emojis. [optional]
python_named_params object A map from keys to values for jobs with Python wheel task, for example `"python_named_params": {"name": "task", "data": "dbfs:/path/to/data.json"}`. [optional]
pipeline_params RunParametersPipelineParams [optional]
sql_params object A map from keys to values for SQL tasks, for example `"sql_params": {"name": "john doe", "age": "35"}`. The SQL alert task does not support custom parameters. [optional]
dbt_commands List[str] An array of commands to execute for jobs with the dbt task, for example `"dbt_commands": ["dbt deps", "dbt seed", "dbt run"]` [optional]

Example

from databricks_jobs.models.jobs_runs_repair_request import JobsRunsRepairRequest

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

# convert the object into a dict
jobs_runs_repair_request_dict = jobs_runs_repair_request_instance.to_dict()
# create an instance of JobsRunsRepairRequest from a dict
jobs_runs_repair_request_form_dict = jobs_runs_repair_request.from_dict(jobs_runs_repair_request_dict)

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