cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results for 
Search instead for 
Did you mean: 

disabling a task in a databricks job

dpc
Contributor

Hello

 

I have jobs that perform a number of activities.

Sometimes I want to disable one or more of these activities.

I can do that easily in an app like ADF.

Reading around I cannot find an easy way to do this although, what I've read suggest that it was a 'soon to be expected' feature as far back as 2023, but maybe I've missed something

How do I do this is Databricks as I would have thought this is a fairly basic requirement.

 

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions

Advika
Databricks Employee
Databricks Employee

Hello @dpc!

There isn’t a built-in toggle to disable a task at the moment. For one-off runs, you can try the following options:

  • Using UI: Use Run now with different settings and select only the tasks you’d like to run.
  • Using the API: Use the only field in the run-now endpoint to trigger specific tasks.

For any updates on feature availability or timelines, please share this as feedback here or check with your Databricks account team.

View solution in original post

6 REPLIES 6

Raman_Unifeye
Contributor III

No such Toggle to disable/enable task. 

If you use DAB, its easy to comment out the task and redploy.


RG #Driving Business Outcomes with Data Intelligence

dpc
Contributor

Thanks @Raman_Unifeye 

Do you know if there are any plans to add this feature?

Advika
Databricks Employee
Databricks Employee

Hello @dpc!

There isn’t a built-in toggle to disable a task at the moment. For one-off runs, you can try the following options:

  • Using UI: Use Run now with different settings and select only the tasks you’d like to run.
  • Using the API: Use the only field in the run-now endpoint to trigger specific tasks.

For any updates on feature availability or timelines, please share this as feedback here or check with your Databricks account team.

Coffee77
Contributor III

I'd go with @Advika suggestion to use different params to configure your tasks to be optionally executed based on those parameters. You can include IF/ELSE tasks for easily implement that. 

Other options, valid but not very cool are 1) Cloning jobs and delete tasks 2) Deploy from DAB but previously removing tasks 3) Edit jobs in YAML directly in Databricks UI and comment or remove tasks


Lifelong Learner Cloud & Data Solution Architect | https://www.youtube.com/@CafeConData

None of the options are as straightforward as the UI one. 

Using UI: Use Run now with different settings and select only the tasks you’d like to run.

Yet again, I personally use DAB one as it is convenient to me.


RG #Driving Business Outcomes with Data Intelligence

dpc
Contributor

Thanks. I like the UI option. It's not a permanent disable but it will be good enough

Join Us as a Local Community Builder!

Passionate about hosting events and connecting people? Help us grow a vibrant local community—sign up today to get started!

Sign Up Now