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:ย 

Can we execute a single task in isolation from a multi task Databricks job

Linda22
New Contributor II

A task may be used to process some data. If we have 10 such tasks in a job and we want to process only a couple of datasets only through a couple of tasks, is that possible?

 

5 REPLIES 5

LordLean
New Contributor II

Hi @Retired_mod, where within the Databricks Workflows feature is one able to execute a single task of a job in isolation? I don't see any way to control this via the UI, nor the Jobs API.

Kannathasan
New Contributor III

No, you do not have any direct way to do it but you can do work around by introducing parameter "Skip_job"(Custom Parameter) in your tasks by default you can make it True in all tasks, when you want to run only one or two of them just adjust the parameter value in Databricks Workflow console for rest of tasks as Skip_job = False, By doing this you could achieve. 

Ah great workaround! Thank you.

Wale
New Contributor II

How do you add this custom parameter? Under tasks there is a "parameters" option if one wants to pass parameters to the notebook from the task. I tried adding a "skip_job" key with a "False/True" value in parameters, but when I kick off the task, I am still seeing my other one kick into "pending" state. Please EXACTLY where can I add the "skip_job" custom parameter?

jkb7
New Contributor III

Is there any work in progress on this feature request? Would be interested in running tasks isolated from others for development.

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you wonโ€™t want to miss the chance to attend and share knowledge.

If there isnโ€™t a group near you, start one and help create a community that brings people together.

Request a New Group