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: 

Databricks Asset Bundle to deploy only one workflow

niruban
New Contributor II

Hello Community -

I am trying to deploy only one workflow from my CICD. But whenever I am trying to deploy one workflow using "databricks bundle deploy - prod", it is deleting all the existing workflow in the target environment. Is there any option available to deploy only one workflow without impacting the other workflows in databricks asset bundle? Thanks!!

3 REPLIES 3

Rajani
Contributor II

Hi @niruban 

In ideal scenario it should not delete the exsting workflow

I am also using databricks bundle to deploy the prod env but it has never deleted the current workflow.

Can you send me the  snippet where you can see workflow is delete?

niruban
New Contributor II

@Rajani : This is what I am doing. I am having git actions to kick off which will run 

- name: bundle-deploy
run: |
      cd ${{ vars.HOME }}/dev-ops/databricks_cicd_deployment
      databricks bundle deploy --debug

 

Before running this step, I am creating the yaml file of the modified/newly created workflow alone under resource directory of DABs folder setup. Once I execute the above command it will remove all the other workflows which is not available under resource folder path in the target server.

nvashisth
New Contributor II

Hi Team, the deployment via DAB(Databricks Asset Bundle) reads all yml files present and based on that workflows are generated. In the previous versions of Databricks CLI prior to 0.236(or latest one), it use to delete all the workflow by making delete workflow API calls and then regenerating only those which are present as YML configs. But now, all it does is copy all workspace files to Databricks and then deploys the YML files present as workflow(and removing those which are not present as yml configs) and it does not interfere in any of existing running workloads at the time of deployment.

But since, there is no command yet to provide single workflow deployment so its the default behavior of DAB. But, in future release of Databricks CLI, they should definitely provide support for deploying selected workflows by YML rather than whole bundle.

Hope this helps. 

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