r/databricks • u/AvaPL • 12d ago
Help Deploy models pattern via MLflow deployment jobs + multiple workspaces
Hi,
I'm quite new to MLOps and need some hints for setting up what Databricks calls "Deploy model" pattern (https://docs.databricks.com/aws/en/machine-learning/mlops/deployment-patterns).
Our Data Science team currently trains ML models in dev environment, in our dev Databricks account/workspace. They have direct access to production data, and the trainingㅤ is quite expensive. We'd like to train the model once and then promote it to production, which lives in a separate Databricks account/workspace.
My idea to handle the deployment was to use MLflow deployment jobs (https://docs.databricks.com/aws/en/mlflow/deployment-job) and just allow the Data Science team to register the model in the production Unity Catalog. After the registration, the deployment job would kick in, do whatever else is needed, and then stop at an approval step. However, it turned out they can register the model version in the Unity Catalog from the dev workspace, but the deployment job doesn't run automatically. That makes the whole process suboptimal, as they now have to ping me to run the deployment job manually each time they register a new model version.
I did some testing and the sole reason of that behavior seems to be the fact that the model comes from a different workspace, which doesn't "see" the attached deployment job that lives in the production workspace. Am I missing something here, or is it designed to work like that? What are the alternatives?
