
Databricks CreateJob
CertifiedCreate and run a Databricks job
Databricks CreateJob
Create and run a Databricks job
Creates a Databricks job with one or more tasks, submits it immediately, and optionally waits for completion. Use numWorkers/cluster settings inside each task; set waitForCompletion (ISO-8601 duration) to block until the run ends.
type: io.kestra.plugin.databricks.job.CreateJobExamples
Create a Databricks job, run it, and wait for completion for five minutes.
id: databricks_job_create
namespace: company.team
tasks:
- id: create_job
type: io.kestra.plugin.databricks.job.CreateJob
authentication:
token: "{{ secret('DATABRICKS_TOKEN') }}"
host: "{{ secret('DATABRICKS_HOST') }}"
jobTasks:
- existingClusterId: <your-cluster>
taskKey: taskKey
sparkPythonTask:
pythonFile: /Shared/hello.py
sparkPythonTaskSource: WORKSPACE
waitForCompletion: PT5M
Properties
jobTasks *Requiredarray
1Job tasks
Task definitions; when multiple tasks are present, specify dependsOn for ordering
io.kestra.plugin.databricks.job.CreateJob-JobTaskSetting
DBT task settings
io.kestra.plugin.databricks.job.task.DbtTaskSetting
Task dependencies
List of upstream taskKeys when multiple tasks run in the job
Task description
Existing cluster ID
Cluster to reuse for this task; omit to use task-specific settings
Task libraries
io.kestra.plugin.databricks.job.task.LibrarySetting
io.kestra.plugin.databricks.job.task.LibrarySetting-CranSetting
io.kestra.plugin.databricks.job.task.LibrarySetting-MavenSetting
io.kestra.plugin.databricks.job.task.LibrarySetting-PypiSetting
Notebook task settings
io.kestra.plugin.databricks.job.task.NotebookTaskSetting
Map of task base parameters.
Can be a map of string/string or a variable that binds to a JSON object.
GITWORKSPACEPipeline task settings
io.kestra.plugin.databricks.job.task.PipelineTaskSetting
Python Wheel task settings
io.kestra.plugin.databricks.job.task.PythonWheelTaskSetting
Map of task named parameters.
Can be a map of string/string or a variable that binds to a JSON object.
List of task parameters.
Can be a list of strings or a variable that binds to a JSON array of strings.
Run job task settings
io.kestra.plugin.databricks.job.task.RunJobTaskSetting
Spark JAR task settings
io.kestra.plugin.databricks.job.task.SparkJarTaskSetting
List of task parameters.
Can be a list of strings or a variable that binds to a JSON array of strings.
Spark Python task settings
io.kestra.plugin.databricks.job.task.SparkPythonTaskSetting
GITWORKSPACEList of task parameters.
Can be a list of strings or a variable that binds to a JSON array of strings.
Spark Submit task settings
io.kestra.plugin.databricks.job.task.SparkSubmitTaskSetting
List of task parameters.
Can be a list of strings or a variable that binds to a JSON array of strings.
SQL task settings
io.kestra.plugin.databricks.job.task.SqlTaskSetting
Map of task parameters.
Can be a map of string/string or a variable that binds to a JSON object.
Task key
Unique key per task; required when multiple tasks are defined
Task timeout (seconds)
accountId string
Databricks account identifier
authentication
Databricks authentication configuration
This property allows to configure the authentication to Databricks, different properties should be set depending on the type of authentication and the cloud provider. All configuration options can also be set using the standard Databricks environment variables. Check the Databricks authentication guide for more information.
io.kestra.plugin.databricks.AbstractTask-AuthenticationConfig
Authentication type
Azure client ID
Azure client secret
Azure tenant ID
Client ID
Client secret
Google credentials JSON
Google service account email
Password
Databricks personal access token
Username
configFile string
Databricks configuration file, use this if you don't want to configure each Databricks account properties one by one
host string
Databricks host
jobName string
Job name
pluginDefaultsRef Non-dynamicstring
Reference (ref) of the pluginDefaults to apply to this task.
waitForCompletion string
Wait for completion
If set, waits up to the given duration (e.g., PT1H) for the submitted run to finish
Outputs
jobId integer
Job identifier
jobURI string
uriJob console URI
runId integer
Run identifier
runURI string
uriRun console URI