Deploy lock force acquired error when deploying asset bundle using databricks cli

alpine
New Contributor

I'm running this command on a DevOps pipeline.

databricks bundle deploy -t dev

I receive this error and have tried using --force-lock but it still doesn't work.

Error: deploy lock force acquired by name@company.com at 2024-02-20 16:38:34.99794209 +0000 UTC. Use --force-lock to override
 
This problem started happening after I added a module to the databricks asset bundle. 

amedkua
New Contributor II

Hi Kaniz, please where exactly are we supposed to add this short code ? Thanks a lot 🙂

Li_Li
New Contributor II

Hi, I had the same error. Could I ask if this --force-lock has anything to do with the terraform lock? or it's a separate lock only for bundle? Where can I find documentation about this flag? thank you in advance.

manish1987c
New Contributor III

why we geneally get this error any specific reason

manish1987c
New Contributor III

you can use below command

databricks bundle deploy -t dev --force-lock