podstack 1.3.0__tar.gz → 1.3.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {podstack-1.3.0 → podstack-1.3.1}/PKG-INFO +1 -1
- {podstack-1.3.0 → podstack-1.3.1}/podstack/__init__.py +1 -1
- {podstack-1.3.0 → podstack-1.3.1}/podstack/gpu_runner.py +15 -1
- {podstack-1.3.0 → podstack-1.3.1}/podstack.egg-info/PKG-INFO +1 -1
- {podstack-1.3.0 → podstack-1.3.1}/pyproject.toml +1 -1
- {podstack-1.3.0 → podstack-1.3.1}/LICENSE +0 -0
- {podstack-1.3.0 → podstack-1.3.1}/README.md +0 -0
- {podstack-1.3.0 → podstack-1.3.1}/podstack/annotations.py +0 -0
- {podstack-1.3.0 → podstack-1.3.1}/podstack/client.py +0 -0
- {podstack-1.3.0 → podstack-1.3.1}/podstack/exceptions.py +0 -0
- {podstack-1.3.0 → podstack-1.3.1}/podstack/execution.py +0 -0
- {podstack-1.3.0 → podstack-1.3.1}/podstack/models.py +0 -0
- {podstack-1.3.0 → podstack-1.3.1}/podstack/notebook.py +0 -0
- {podstack-1.3.0 → podstack-1.3.1}/podstack/registry/__init__.py +0 -0
- {podstack-1.3.0 → podstack-1.3.1}/podstack/registry/client.py +0 -0
- {podstack-1.3.0 → podstack-1.3.1}/podstack/registry/exceptions.py +0 -0
- {podstack-1.3.0 → podstack-1.3.1}/podstack/registry/experiment.py +0 -0
- {podstack-1.3.0 → podstack-1.3.1}/podstack/registry/model.py +0 -0
- {podstack-1.3.0 → podstack-1.3.1}/podstack/registry/model_utils.py +0 -0
- {podstack-1.3.0 → podstack-1.3.1}/podstack.egg-info/SOURCES.txt +0 -0
- {podstack-1.3.0 → podstack-1.3.1}/podstack.egg-info/dependency_links.txt +0 -0
- {podstack-1.3.0 → podstack-1.3.1}/podstack.egg-info/requires.txt +0 -0
- {podstack-1.3.0 → podstack-1.3.1}/podstack.egg-info/top_level.txt +0 -0
- {podstack-1.3.0 → podstack-1.3.1}/podstack_gpu/__init__.py +0 -0
- {podstack-1.3.0 → podstack-1.3.1}/podstack_gpu/app.py +0 -0
- {podstack-1.3.0 → podstack-1.3.1}/podstack_gpu/exceptions.py +0 -0
- {podstack-1.3.0 → podstack-1.3.1}/podstack_gpu/image.py +0 -0
- {podstack-1.3.0 → podstack-1.3.1}/podstack_gpu/runner.py +0 -0
- {podstack-1.3.0 → podstack-1.3.1}/podstack_gpu/secret.py +0 -0
- {podstack-1.3.0 → podstack-1.3.1}/podstack_gpu/utils.py +0 -0
- {podstack-1.3.0 → podstack-1.3.1}/podstack_gpu/volume.py +0 -0
- {podstack-1.3.0 → podstack-1.3.1}/setup.cfg +0 -0
|
@@ -965,6 +965,19 @@ _stream_install(
|
|
|
965
965
|
except:
|
|
966
966
|
return {"status": "cancelled"}
|
|
967
967
|
|
|
968
|
+
def _get_platform_url(self) -> str:
|
|
969
|
+
"""Derive the platform service URL from the notebook service URL."""
|
|
970
|
+
if os.environ.get("PODSTACK_PLATFORM_URL"):
|
|
971
|
+
return os.environ.get("PODSTACK_PLATFORM_URL")
|
|
972
|
+
# External: cloud.podstack.ai/notebooks -> cloud.podstack.ai/platform
|
|
973
|
+
if "/notebooks" in self.api_url:
|
|
974
|
+
return self.api_url.replace("/notebooks", "/platform")
|
|
975
|
+
# Internal K8s: notebook service URL -> platform service URL
|
|
976
|
+
if "notebook" in self.api_url and ".svc.cluster.local" in self.api_url:
|
|
977
|
+
return self.api_url.replace("notebook", "platform").replace(":8084", ":8081")
|
|
978
|
+
# Fallback: use the same base URL
|
|
979
|
+
return self.api_url
|
|
980
|
+
|
|
968
981
|
def list_runners(self) -> list:
|
|
969
982
|
"""
|
|
970
983
|
List available GPU/CPU runners.
|
|
@@ -972,7 +985,8 @@ _stream_install(
|
|
|
972
985
|
Returns:
|
|
973
986
|
List of runner dictionaries with name, type, description, image, libraries, scenarios.
|
|
974
987
|
"""
|
|
975
|
-
|
|
988
|
+
platform_url = self._get_platform_url()
|
|
989
|
+
url = f"{platform_url}/api/v1/runners"
|
|
976
990
|
|
|
977
991
|
with httpx.Client(timeout=self.timeout) as client:
|
|
978
992
|
try:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|