matrice-compute 0.1.27__py3-none-any.whl → 0.1.28__py3-none-any.whl

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.
@@ -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=True):
21
+ def __init__(self, session, instance_id=None, enable_kafka=False):
22
22
  """Initialize Scaling instance.
23
23
 
24
24
  Args:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: matrice_compute
3
- Version: 0.1.27
3
+ Version: 0.1.28
4
4
  Summary: Common server utilities for Matrice.ai services
5
5
  Author-email: "Matrice.ai" <dipendra@matrice.ai>
6
6
  License-Expression: MIT
@@ -3,16 +3,16 @@ matrice_compute/action_instance.py,sha256=upGZaluoVawusKFmULfk27hHJmfRi23m5W-BNV
3
3
  matrice_compute/actions_manager.py,sha256=Iex5uw0PLRR4pvIAZDxc2CypucbanKDbJ3SK8mMGXK8,18148
4
4
  matrice_compute/actions_scaledown_manager.py,sha256=pJ0nduNwHWZ10GnqJNx0Ok7cVWabQ_M8E2Vb9pH3A_k,2002
5
5
  matrice_compute/compute_operations_handler.py,sha256=amcMhmXtv2irE6qK8Vbgec_8uFqjWmVVp0VWq-73_MU,17781
6
- matrice_compute/instance_manager.py,sha256=4AMOsA3eazb7qBuVRZDyF3eTzGVXKtKpFQBcSF5IWLg,19153
6
+ matrice_compute/instance_manager.py,sha256=kPZYfiq3Oevs5r1xzwvDzE27zeWF9oBBxh9KhpHJuG4,19292
7
7
  matrice_compute/instance_utils.py,sha256=N4yPDvNukFEEBngR0lEt4x_XT5hur1q0P-spM2xQIlU,42025
8
8
  matrice_compute/prechecks.py,sha256=W9YmNF3RcLhOf4U8WBlExvFqDw1aGWSNTlJtA73lbDQ,17196
9
9
  matrice_compute/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
10
10
  matrice_compute/resources_tracker.py,sha256=1jSLrIFlOh-vgyNzFrUrE2Ak2JAGCIfV7wcyEPJ0f2c,32246
11
- matrice_compute/scaling.py,sha256=o-lan8RFC3NSUpaFtz37vytYiD5vxATHULIUwtH2uXA,52930
11
+ matrice_compute/scaling.py,sha256=oeCgQb6g9W7p8-VaDXT4jDH3aMz-fCO5MZmj-1Gbz1c,52931
12
12
  matrice_compute/shutdown_manager.py,sha256=0MYV_AqygqR9NEntYf7atUC-PbWXyNkm1f-8c2aizgA,13234
13
13
  matrice_compute/task_utils.py,sha256=3qIutiQdYPyGRxH9ZwLbqdg8sZcnp6jp08pszWCRFl0,2820
14
- matrice_compute-0.1.27.dist-info/licenses/LICENSE.txt,sha256=_uQUZpgO0mRYL5-fPoEvLSbNnLPv6OmbeEDCHXhK6Qc,1066
15
- matrice_compute-0.1.27.dist-info/METADATA,sha256=fp05SYBiLtgtyJlysW9CaL8lCgrQbfTpjmOEyYcRyu4,1038
16
- matrice_compute-0.1.27.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
17
- matrice_compute-0.1.27.dist-info/top_level.txt,sha256=63Plr3L1GzBUWZO5JZaFkiv8IcB10xUPU-9w3i6ptvE,16
18
- matrice_compute-0.1.27.dist-info/RECORD,,
14
+ matrice_compute-0.1.28.dist-info/licenses/LICENSE.txt,sha256=_uQUZpgO0mRYL5-fPoEvLSbNnLPv6OmbeEDCHXhK6Qc,1066
15
+ matrice_compute-0.1.28.dist-info/METADATA,sha256=1kig3ZTOXrgX71W2FtcgyZ9RO_xyUq8b1_qYrl0qhpA,1038
16
+ matrice_compute-0.1.28.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
17
+ matrice_compute-0.1.28.dist-info/top_level.txt,sha256=63Plr3L1GzBUWZO5JZaFkiv8IcB10xUPU-9w3i6ptvE,16
18
+ matrice_compute-0.1.28.dist-info/RECORD,,