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 Bundle Deploy -t prod" command deletes log of historical runs

ynskrbn
New Contributor II

I'm using Databricks Asset Bundles with Azure DevOps CI/CD for workflow deployment. While the initial deployment to production works fine, I encounter an issue when updating the workflow in the development environment and redeploying it to production. Upon redeployment, all historical run logs are lost. Is there a way to preserve these logs during deployment, perhaps using a command like databricks bundle reset -t prod?

It should display all the log like this
ynskrbn_0-1734355157245.png

but after deploying everything is gone

ynskrbn_1-1734355261180.png

4 REPLIES 4

Alberto_Umana
Databricks Employee
Databricks Employee

Hi @ynskrbn,

This is likely because the deployment process overwrites the existing job definitions, which in turn resets the job history. To preserve historical logs, you need to ensure that the job definitions are not completely overwritten during the redeployment process. Instead, you should update the existing jobs while retaining their history

I know how to do this with the API, but not with Databricks Asset Bundles in my deployment pipeline. where can i find the documentation?

Alberto_Umana
Databricks Employee
Databricks Employee

PabloCSD
Contributor III

When you re-deploy you job, do you augment the version? (e.g., 4.3.0 -> 4.3.1)

I have been through this, when I change a definition in the databricks.yml, for example when changing the bundle name, because it detects as a new workflow.

Can you explain about the "re-deployment"? In our Azure DevOps CI/CD pipeline, when we generate a new release of the workflow it is just used this command:

databricks bundle deploy --target prod

 

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