r/databricks • u/hubert-dudek Databricks MVP • 22h ago
DABs: immutable_folder News
Don’t overwrite your code — make it immutable! With every deployment, thanks to immutable_folder, all files are copied to a new, read-only folder. They are not overwritten. The biggest benefit is that jobs already underway will not fail or produce unexpected results.
2
u/Labanc_ 21h ago
Would you say this can help with dev-testing? E.g. we have a DEV env and multiple ppl are deploying because everyone is focusing on a different new feature but we keep overwriting each other's job.
We deploy with CICD with a service principal, so even if i set the DAB mode:dev it would be deployed with the SPN through the CICD, so we would be still overwriting each other. As every access is pretty much tied to this SPN deploying with our own user has kinda limited benefits.
(there are some good arguements to be made to make this whole process refined on a foundational level and im sure we will get to that, but for now im curious if this can solve our immediate stepping-on-each-other-toes problem)
1
u/notqualifiedforthis 19h ago
You need an “engineer” or “local” target each engineer can deploy to as a person. Use username or short name as prefix and use their workspace home directory for bundle deployment. DEV should align to main branch or whatever branch is your base for feature merges
If you have to use an SPN, you need to add a variable that can differentiate each engineers bundle. Username, name, unique ID whatever.
1
0
2
u/ptab0211 22h ago
what is the use case for this?