Hi @Chalki, Letโs address both aspects of your question:
Updating the Repo in Databricks Environment:
- If your jobs are currently pointing directly to a remote repository and you want to update the code without deploying it to the workspace, you can achieve this using Databricks Asset Bundles.
- Databricks Asset Bundles allow you to package and manage your code, dependencies, and configurations separately from the workspace. You can create a bundle that includes your Python code (e.g., a Python wheel) and other necessary files.
- By using Databricks Asset Bundles, you can update the code in your jobs without deploying it to the workspace. The bundle acts as a container for your code, and you can reference it directly in your jobs.
- This approach provides flexibility and isolation, especially when you donโt want to clutter your workspace with code files.
Difference Between Python Wheel in an Asset Bundle and Direct Deployment with CLI:
- Both methods allow you to deploy Python wheels, but they serve different purposes:
- Python Wheel as Part of a Databricks Asset Bundle:
- Bundles are a way to package and manage your code, dependencies, and configurations.
- You create a bundle that includes your Python wheel (built using setuptools or Poetry) and any other necessary files.
- Bundles can be versioned, and you can reference them directly in your jobs or pipelines.
- This approach is useful when you want to keep your code separate from the workspace and manage it as an isolated unit.
- Direct Deployment with the Databricks CLI:
- When you deploy a Python wheel directly using the Databricks CLI, youโre essentially updating the code in a specific job or pipeline.
- This method is more straightforward and doesnโt involve creating a separate bundle.
- Itโs suitable when you need to quickly update a job or pipeline without managing additional bundle artifacts.
- However, the code resides in the workspace, which may not be ideal if you want to keep it separate.
In summary, if you prefer isolation and versioning, consider using Databricks Asset Bundles. If simplicity and direct deployment are your priorities, stick with the CLI approach. Choose the one that best aligns with your teamโs workflow and requirements! ๐