modal 1.2.1.dev14__py3-none-any.whl → 1.2.1.dev15__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.

Potentially problematic release.


This version of modal might be problematic. Click here for more details.

modal_proto/api_pb2.pyi CHANGED
@@ -10264,36 +10264,6 @@ class TaskCurrentInputsResponse(google.protobuf.message.Message):
10264
10264
 
10265
10265
  global___TaskCurrentInputsResponse = TaskCurrentInputsResponse
10266
10266
 
10267
- class TaskGetAutoscalingMetricsRequest(google.protobuf.message.Message):
10268
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
10269
-
10270
- TASK_ID_FIELD_NUMBER: builtins.int
10271
- task_id: builtins.str
10272
- def __init__(
10273
- self,
10274
- *,
10275
- task_id: builtins.str = ...,
10276
- ) -> None: ...
10277
- def ClearField(self, field_name: typing_extensions.Literal["task_id", b"task_id"]) -> None: ...
10278
-
10279
- global___TaskGetAutoscalingMetricsRequest = TaskGetAutoscalingMetricsRequest
10280
-
10281
- class TaskGetAutoscalingMetricsResponse(google.protobuf.message.Message):
10282
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
10283
-
10284
- METRICS_FIELD_NUMBER: builtins.int
10285
- @property
10286
- def metrics(self) -> global___AutoscalingMetrics: ...
10287
- def __init__(
10288
- self,
10289
- *,
10290
- metrics: global___AutoscalingMetrics | None = ...,
10291
- ) -> None: ...
10292
- def HasField(self, field_name: typing_extensions.Literal["metrics", b"metrics"]) -> builtins.bool: ...
10293
- def ClearField(self, field_name: typing_extensions.Literal["metrics", b"metrics"]) -> None: ...
10294
-
10295
- global___TaskGetAutoscalingMetricsResponse = TaskGetAutoscalingMetricsResponse
10296
-
10297
10267
  class TaskGetCommandRouterAccessRequest(google.protobuf.message.Message):
10298
10268
  """Used to get a JWT and URL for direct access to a task command router
10299
10269
  running on the modal-worker, so the client can issue exec commands (and other
@@ -755,11 +755,6 @@ class ModalClientStub(object):
755
755
  request_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
756
756
  response_deserializer=modal__proto_dot_api__pb2.TaskCurrentInputsResponse.FromString,
757
757
  )
758
- self.TaskGetAutoscalingMetrics = channel.unary_unary(
759
- '/modal.client.ModalClient/TaskGetAutoscalingMetrics',
760
- request_serializer=modal__proto_dot_api__pb2.TaskGetAutoscalingMetricsRequest.SerializeToString,
761
- response_deserializer=modal__proto_dot_api__pb2.TaskGetAutoscalingMetricsResponse.FromString,
762
- )
763
758
  self.TaskGetCommandRouterAccess = channel.unary_unary(
764
759
  '/modal.client.ModalClient/TaskGetCommandRouterAccess',
765
760
  request_serializer=modal__proto_dot_api__pb2.TaskGetCommandRouterAccessRequest.SerializeToString,
@@ -1811,13 +1806,6 @@ class ModalClientServicer(object):
1811
1806
  context.set_details('Method not implemented!')
1812
1807
  raise NotImplementedError('Method not implemented!')
1813
1808
 
1814
- def TaskGetAutoscalingMetrics(self, request, context):
1815
- """Used for flash autoscaling
1816
- """
1817
- context.set_code(grpc.StatusCode.UNIMPLEMENTED)
1818
- context.set_details('Method not implemented!')
1819
- raise NotImplementedError('Method not implemented!')
1820
-
1821
1809
  def TaskGetCommandRouterAccess(self, request, context):
1822
1810
  """Missing associated documentation comment in .proto file."""
1823
1811
  context.set_code(grpc.StatusCode.UNIMPLEMENTED)
@@ -2721,11 +2709,6 @@ def add_ModalClientServicer_to_server(servicer, server):
2721
2709
  request_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
2722
2710
  response_serializer=modal__proto_dot_api__pb2.TaskCurrentInputsResponse.SerializeToString,
2723
2711
  ),
2724
- 'TaskGetAutoscalingMetrics': grpc.unary_unary_rpc_method_handler(
2725
- servicer.TaskGetAutoscalingMetrics,
2726
- request_deserializer=modal__proto_dot_api__pb2.TaskGetAutoscalingMetricsRequest.FromString,
2727
- response_serializer=modal__proto_dot_api__pb2.TaskGetAutoscalingMetricsResponse.SerializeToString,
2728
- ),
2729
2712
  'TaskGetCommandRouterAccess': grpc.unary_unary_rpc_method_handler(
2730
2713
  servicer.TaskGetCommandRouterAccess,
2731
2714
  request_deserializer=modal__proto_dot_api__pb2.TaskGetCommandRouterAccessRequest.FromString,
@@ -5382,23 +5365,6 @@ class ModalClient(object):
5382
5365
  options, channel_credentials,
5383
5366
  insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
5384
5367
 
5385
- @staticmethod
5386
- def TaskGetAutoscalingMetrics(request,
5387
- target,
5388
- options=(),
5389
- channel_credentials=None,
5390
- call_credentials=None,
5391
- insecure=False,
5392
- compression=None,
5393
- wait_for_ready=None,
5394
- timeout=None,
5395
- metadata=None):
5396
- return grpc.experimental.unary_unary(request, target, '/modal.client.ModalClient/TaskGetAutoscalingMetrics',
5397
- modal__proto_dot_api__pb2.TaskGetAutoscalingMetricsRequest.SerializeToString,
5398
- modal__proto_dot_api__pb2.TaskGetAutoscalingMetricsResponse.FromString,
5399
- options, channel_credentials,
5400
- insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
5401
-
5402
5368
  @staticmethod
5403
5369
  def TaskGetCommandRouterAccess(request,
5404
5370
  target,
@@ -630,11 +630,6 @@ class ModalClientStub:
630
630
  google.protobuf.empty_pb2.Empty,
631
631
  modal_proto.api_pb2.TaskCurrentInputsResponse,
632
632
  ]
633
- TaskGetAutoscalingMetrics: grpc.UnaryUnaryMultiCallable[
634
- modal_proto.api_pb2.TaskGetAutoscalingMetricsRequest,
635
- modal_proto.api_pb2.TaskGetAutoscalingMetricsResponse,
636
- ]
637
- """Used for flash autoscaling"""
638
633
  TaskGetCommandRouterAccess: grpc.UnaryUnaryMultiCallable[
639
634
  modal_proto.api_pb2.TaskGetCommandRouterAccessRequest,
640
635
  modal_proto.api_pb2.TaskGetCommandRouterAccessResponse,
@@ -1662,13 +1657,6 @@ class ModalClientServicer(metaclass=abc.ABCMeta):
1662
1657
  context: grpc.ServicerContext,
1663
1658
  ) -> modal_proto.api_pb2.TaskCurrentInputsResponse: ...
1664
1659
  @abc.abstractmethod
1665
- def TaskGetAutoscalingMetrics(
1666
- self,
1667
- request: modal_proto.api_pb2.TaskGetAutoscalingMetricsRequest,
1668
- context: grpc.ServicerContext,
1669
- ) -> modal_proto.api_pb2.TaskGetAutoscalingMetricsResponse:
1670
- """Used for flash autoscaling"""
1671
- @abc.abstractmethod
1672
1660
  def TaskGetCommandRouterAccess(
1673
1661
  self,
1674
1662
  request: modal_proto.api_pb2.TaskGetCommandRouterAccessRequest,
@@ -166,7 +166,6 @@ class ModalClientModal:
166
166
  self.SharedVolumeRemoveFile = modal.client.UnaryUnaryWrapper(grpclib_stub.SharedVolumeRemoveFile, client, server_url)
167
167
  self.TaskClusterHello = modal.client.UnaryUnaryWrapper(grpclib_stub.TaskClusterHello, client, server_url)
168
168
  self.TaskCurrentInputs = modal.client.UnaryUnaryWrapper(grpclib_stub.TaskCurrentInputs, client, server_url)
169
- self.TaskGetAutoscalingMetrics = modal.client.UnaryUnaryWrapper(grpclib_stub.TaskGetAutoscalingMetrics, client, server_url)
170
169
  self.TaskGetCommandRouterAccess = modal.client.UnaryUnaryWrapper(grpclib_stub.TaskGetCommandRouterAccess, client, server_url)
171
170
  self.TaskList = modal.client.UnaryUnaryWrapper(grpclib_stub.TaskList, client, server_url)
172
171
  self.TaskResult = modal.client.UnaryUnaryWrapper(grpclib_stub.TaskResult, client, server_url)
modal_version/__init__.py CHANGED
@@ -1,4 +1,4 @@
1
1
  # Copyright Modal Labs 2025
2
2
  """Supplies the current version of the modal client library."""
3
3
 
4
- __version__ = "1.2.1.dev14"
4
+ __version__ = "1.2.1.dev15"