From 9982a7948454aab23086b4ac3f6642fb8725a265 Mon Sep 17 00:00:00 2001 From: Tianjing Li Date: Thu, 23 Jan 2025 11:49:33 -0500 Subject: [PATCH] WIP --- src/backend/services/deployment.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/backend/services/deployment.py b/src/backend/services/deployment.py index 65b6caada1..86f88062c2 100644 --- a/src/backend/services/deployment.py +++ b/src/backend/services/deployment.py @@ -136,4 +136,9 @@ def update_db_config_from_env(session: DBSessionDep): # Fetch DB entity db_deployment = deployment_crud.get_deployment_by_name(session, deployment_name) + # Skip to next if no config or no DB deployment found + if not env_config or not db_deployment: + logger.debug(event="Updating DB deployment config, no config or no DB deployment found.") + continue + breakpoint()