matrice-compute 0.1.27__tar.gz → 0.1.28__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.
- {matrice_compute-0.1.27 → matrice_compute-0.1.28}/PKG-INFO +1 -1
- {matrice_compute-0.1.27 → matrice_compute-0.1.28}/matrice_compute.egg-info/PKG-INFO +1 -1
- {matrice_compute-0.1.27 → matrice_compute-0.1.28}/src/matrice_compute/instance_manager.py +3 -0
- {matrice_compute-0.1.27 → matrice_compute-0.1.28}/src/matrice_compute/scaling.py +1 -1
- {matrice_compute-0.1.27 → matrice_compute-0.1.28}/LICENSE.txt +0 -0
- {matrice_compute-0.1.27 → matrice_compute-0.1.28}/README.md +0 -0
- {matrice_compute-0.1.27 → matrice_compute-0.1.28}/matrice_compute.egg-info/SOURCES.txt +0 -0
- {matrice_compute-0.1.27 → matrice_compute-0.1.28}/matrice_compute.egg-info/dependency_links.txt +0 -0
- {matrice_compute-0.1.27 → matrice_compute-0.1.28}/matrice_compute.egg-info/not-zip-safe +0 -0
- {matrice_compute-0.1.27 → matrice_compute-0.1.28}/matrice_compute.egg-info/top_level.txt +0 -0
- {matrice_compute-0.1.27 → matrice_compute-0.1.28}/pyproject.toml +0 -0
- {matrice_compute-0.1.27 → matrice_compute-0.1.28}/setup.cfg +0 -0
- {matrice_compute-0.1.27 → matrice_compute-0.1.28}/setup.py +0 -0
- {matrice_compute-0.1.27 → matrice_compute-0.1.28}/src/matrice_compute/__init__.py +0 -0
- {matrice_compute-0.1.27 → matrice_compute-0.1.28}/src/matrice_compute/action_instance.py +0 -0
- {matrice_compute-0.1.27 → matrice_compute-0.1.28}/src/matrice_compute/actions_manager.py +0 -0
- {matrice_compute-0.1.27 → matrice_compute-0.1.28}/src/matrice_compute/actions_scaledown_manager.py +0 -0
- {matrice_compute-0.1.27 → matrice_compute-0.1.28}/src/matrice_compute/compute_operations_handler.py +0 -0
- {matrice_compute-0.1.27 → matrice_compute-0.1.28}/src/matrice_compute/instance_utils.py +0 -0
- {matrice_compute-0.1.27 → matrice_compute-0.1.28}/src/matrice_compute/prechecks.py +0 -0
- {matrice_compute-0.1.27 → matrice_compute-0.1.28}/src/matrice_compute/py.typed +0 -0
- {matrice_compute-0.1.27 → matrice_compute-0.1.28}/src/matrice_compute/resources_tracker.py +0 -0
- {matrice_compute-0.1.27 → matrice_compute-0.1.28}/src/matrice_compute/shutdown_manager.py +0 -0
- {matrice_compute-0.1.27 → matrice_compute-0.1.28}/src/matrice_compute/task_utils.py +0 -0
|
@@ -41,6 +41,7 @@ class InstanceManager:
|
|
|
41
41
|
env: str = "",
|
|
42
42
|
gpus: str = "",
|
|
43
43
|
workspace_dir: str = "matrice_workspace",
|
|
44
|
+
enable_kafka: bool = False,
|
|
44
45
|
):
|
|
45
46
|
"""Initialize an instance manager.
|
|
46
47
|
|
|
@@ -61,6 +62,7 @@ class InstanceManager:
|
|
|
61
62
|
Defaults to empty string.
|
|
62
63
|
workspace_dir (str): Directory for workspace files.
|
|
63
64
|
Defaults to "matrice_workspace".
|
|
65
|
+
enable_kafka (bool): Enable Kafka communication (default False).
|
|
64
66
|
"""
|
|
65
67
|
self.session = self._setup_env_credentials(
|
|
66
68
|
env,
|
|
@@ -75,6 +77,7 @@ class InstanceManager:
|
|
|
75
77
|
self.scaling = Scaling(
|
|
76
78
|
self.session,
|
|
77
79
|
os.environ.get("INSTANCE_ID"),
|
|
80
|
+
enable_kafka,
|
|
78
81
|
)
|
|
79
82
|
logging.info("InstanceManager initialized with scaling")
|
|
80
83
|
jupyter_token = os.environ.get("JUPYTER_TOKEN")
|
|
@@ -18,7 +18,7 @@ class Scaling:
|
|
|
18
18
|
|
|
19
19
|
"""Class providing scaling functionality for compute instances."""
|
|
20
20
|
|
|
21
|
-
def __init__(self, session, instance_id=None, enable_kafka=
|
|
21
|
+
def __init__(self, session, instance_id=None, enable_kafka=False):
|
|
22
22
|
"""Initialize Scaling instance.
|
|
23
23
|
|
|
24
24
|
Args:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{matrice_compute-0.1.27 → matrice_compute-0.1.28}/matrice_compute.egg-info/dependency_links.txt
RENAMED
|
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
|
{matrice_compute-0.1.27 → matrice_compute-0.1.28}/src/matrice_compute/actions_scaledown_manager.py
RENAMED
|
File without changes
|
{matrice_compute-0.1.27 → matrice_compute-0.1.28}/src/matrice_compute/compute_operations_handler.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|