Skip to content

Commit 286af83

Browse files
authored
Update generic_model.py
1 parent 7a53130 commit 286af83

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

ads/model/generic_model.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1574,7 +1574,10 @@ def from_model_deployment(
15741574

15751575
current_state = model_deployment.state.name.upper()
15761576
if current_state != ModelDeploymentState.ACTIVE.name:
1577-
raise NotActiveDeploymentError(current_state)
1577+
logger.warning(
1578+
"Model deployment should be in `ACTIVE` state while being fetched. "
1579+
f"Current model deployment state: `{current_state}`"
1580+
)
15781581

15791582
model = cls.from_model_catalog(
15801583
model_id=model_deployment.properties.model_id,

0 commit comments

Comments
 (0)