Skip to content

Commit 48332d1

Browse files
committed
fix the slug
1 parent 10887d7 commit 48332d1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ads/opctl/backend/local.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -718,6 +718,9 @@ def predict(self) -> None:
718718
conda_slug, conda_path = self._get_conda_info_from_runtime(
719719
artifact_dir=artifact_directory
720720
)
721+
if not conda_slug and conda_path:
722+
conda_slug = conda_path.split("/")[-1]
723+
self.config["execution"]["conda_slug"] = conda_slug
721724

722725
self.config["execution"]["image"] = ML_JOB_IMAGE
723726

0 commit comments

Comments
 (0)