CreateJob
Create a Databricks job and run it. Set waitForCompletion
to the desired maximum duration if you want the task to wait for the job completion (e.g., PT1H
to wait up to one hour).
type: "io.kestra.plugin.databricks.job.CreateJob"
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: <your-token>
host: <your-host>
jobTasks:
- existingClusterId: <your-cluster>
taskKey: taskKey
sparkPythonTask:
pythonFile: /Shared/hello.py
sparkPythonTaskSource: WORKSPACE
waitForCompletion: PT5M
YES
Databricks account identifier.
YES
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.
YES
Databricks configuration file, use this if you don't want to configure each Databricks account properties one by one.
YES
Databricks host.
YES
The name of the job.
YES
duration
If set, the task will wait for the job run completion for up to the waitForCompletion
duration before timing out.
The job identifier.
uri
The job URI on the Databricks console.
The run identifier.
uri
The run URI on the Databricks console.
YES
Map of task parameters.
Can be a map of string/string or a variable that binds to a JSON object.
YES
YES
YES
Map of task base parameters.
Can be a map of string/string or a variable that binds to a JSON object.
YES
YES
GIT
WORKSPACE
YES
DBT task settings.
YES
Task dependencies, set this if multiple tasks are defined on the job.
YES
Task description.
YES
The identifier of the cluster.
YES
Notebook task settings.
YES
Pipeline task settings.
YES
Python Wheel task settings.
YES
Run job task settings.
YES
Spark JAR task settings.
YES
Spark Python task settings.
YES
Spark Submit task settings.
YES
SQL task settings.
YES
Task key.
YES
YES
YES
Map of task named parameters.
Can be a map of string/string or a variable that binds to a JSON object.
YES
YES
List of task parameters.
Can be a list of strings or a variable that binds to a JSON array of strings.
YES
YES
YES
List of task parameters.
Can be a list of strings or a variable that binds to a JSON array of strings.
YES
YES
YES
YES
YES
YES
YES
YES
YES
YES
YES
YES
YES
YES
YES
GIT
WORKSPACE
YES
List of task parameters.
Can be a list of strings or a variable that binds to a JSON array of strings.
YES
YES
YES
YES
YES
YES
YES
YES
YES
YES
YES
YES
YES
YES
YES
YES
YES
List of task parameters.
Can be a list of strings or a variable that binds to a JSON array of strings.
YES
YES
YES