modal 0.73.33__py3-none-any.whl → 0.73.35__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.
- modal/_functions.py +8 -0
- modal/client.pyi +2 -2
- {modal-0.73.33.dist-info → modal-0.73.35.dist-info}/METADATA +1 -1
- {modal-0.73.33.dist-info → modal-0.73.35.dist-info}/RECORD +12 -12
- modal_proto/api.proto +7 -4
- modal_proto/api_pb2.py +542 -542
- modal_proto/api_pb2.pyi +11 -2
- modal_version/_version_generated.py +1 -1
- {modal-0.73.33.dist-info → modal-0.73.35.dist-info}/LICENSE +0 -0
- {modal-0.73.33.dist-info → modal-0.73.35.dist-info}/WHEEL +0 -0
- {modal-0.73.33.dist-info → modal-0.73.35.dist-info}/entry_points.txt +0 -0
- {modal-0.73.33.dist-info → modal-0.73.35.dist-info}/top_level.txt +0 -0
modal_proto/api_pb2.pyi
CHANGED
@@ -3845,6 +3845,7 @@ class Function(google.protobuf.message.Message):
|
|
3845
3845
|
_EXPERIMENTAL_CUSTOM_SCALING_FIELD_NUMBER: builtins.int
|
3846
3846
|
CLOUD_PROVIDER_STR_FIELD_NUMBER: builtins.int
|
3847
3847
|
_EXPERIMENTAL_ENABLE_GPU_SNAPSHOT_FIELD_NUMBER: builtins.int
|
3848
|
+
AUTOSCALER_SETTINGS_FIELD_NUMBER: builtins.int
|
3848
3849
|
module_name: builtins.str
|
3849
3850
|
function_name: builtins.str
|
3850
3851
|
@property
|
@@ -3867,14 +3868,17 @@ class Function(google.protobuf.message.Message):
|
|
3867
3868
|
@property
|
3868
3869
|
def retry_policy(self) -> global___FunctionRetryPolicy: ...
|
3869
3870
|
concurrency_limit: builtins.int
|
3871
|
+
"""To be replaced by autoscaler_settings.max_containers"""
|
3870
3872
|
timeout_secs: builtins.int
|
3871
3873
|
@property
|
3872
3874
|
def pty_info(self) -> global___PTYInfo: ...
|
3873
3875
|
class_serialized: builtins.bytes
|
3874
3876
|
task_idle_timeout_secs: builtins.int
|
3877
|
+
"""To be replaced by autoscaler_settings.scaledown_period"""
|
3875
3878
|
cloud_provider: global___CloudProvider.ValueType
|
3876
3879
|
"""Deprecated at some point"""
|
3877
3880
|
warm_pool_size: builtins.int
|
3881
|
+
"""To be replaced by autoscaler_settings.min_containers"""
|
3878
3882
|
web_url: builtins.str
|
3879
3883
|
@property
|
3880
3884
|
def web_url_info(self) -> global___WebUrlInfo: ...
|
@@ -3939,6 +3943,7 @@ class Function(google.protobuf.message.Message):
|
|
3939
3943
|
untrusted: builtins.bool
|
3940
3944
|
"""If set, the function will be run in an untrusted environment."""
|
3941
3945
|
_experimental_buffer_containers: builtins.int
|
3946
|
+
"""To be replaced by autoscaler_settings.buffer_containers"""
|
3942
3947
|
_experimental_proxy_ip: builtins.str
|
3943
3948
|
"""_experimental_proxy_ip -> ProxyInfo
|
3944
3949
|
TODO: deprecate.
|
@@ -3958,6 +3963,9 @@ class Function(google.protobuf.message.Message):
|
|
3958
3963
|
"""Supersedes cloud_provider"""
|
3959
3964
|
_experimental_enable_gpu_snapshot: builtins.bool
|
3960
3965
|
"""Experimental support for GPU snapshotting"""
|
3966
|
+
@property
|
3967
|
+
def autoscaler_settings(self) -> global___AutoscalerSettings:
|
3968
|
+
"""Bundle of parameters related to autoscaling"""
|
3961
3969
|
def __init__(
|
3962
3970
|
self,
|
3963
3971
|
*,
|
@@ -4026,9 +4034,10 @@ class Function(google.protobuf.message.Message):
|
|
4026
4034
|
_experimental_custom_scaling: builtins.bool = ...,
|
4027
4035
|
cloud_provider_str: builtins.str = ...,
|
4028
4036
|
_experimental_enable_gpu_snapshot: builtins.bool = ...,
|
4037
|
+
autoscaler_settings: global___AutoscalerSettings | None = ...,
|
4029
4038
|
) -> None: ...
|
4030
|
-
def HasField(self, field_name: typing_extensions.Literal["X_experimental_proxy_ip", b"X_experimental_proxy_ip", "_cloud_provider", b"_cloud_provider", "_experimental_proxy_ip", b"_experimental_proxy_ip", "_proxy_id", b"_proxy_id", "_scheduler_placement", b"_scheduler_placement", "checkpoint", b"checkpoint", "class_parameter_info", b"class_parameter_info", "cloud_provider", b"cloud_provider", "proxy_id", b"proxy_id", "pty_info", b"pty_info", "rate_limit", b"rate_limit", "resources", b"resources", "retry_policy", b"retry_policy", "schedule", b"schedule", "scheduler_placement", b"scheduler_placement", "web_url_info", b"web_url_info", "webhook_config", b"webhook_config"]) -> builtins.bool: ...
|
4031
|
-
def ClearField(self, field_name: typing_extensions.Literal["X_experimental_proxy_ip", b"X_experimental_proxy_ip", "_cloud_provider", b"_cloud_provider", "_experimental_buffer_containers", b"_experimental_buffer_containers", "_experimental_concurrent_cancellations", b"_experimental_concurrent_cancellations", "_experimental_custom_scaling", b"_experimental_custom_scaling", "_experimental_enable_gpu_snapshot", b"_experimental_enable_gpu_snapshot", "_experimental_group_size", b"_experimental_group_size", "_experimental_proxy_ip", b"_experimental_proxy_ip", "_experimental_task_templates", b"_experimental_task_templates", "_experimental_task_templates_enabled", b"_experimental_task_templates_enabled", "_proxy_id", b"_proxy_id", "_scheduler_placement", b"_scheduler_placement", "app_name", b"app_name", "batch_linger_ms", b"batch_linger_ms", "batch_max_size", b"batch_max_size", "block_network", b"block_network", "checkpoint", b"checkpoint", "checkpointing_enabled", b"checkpointing_enabled", "class_parameter_info", b"class_parameter_info", "class_serialized", b"class_serialized", "cloud_bucket_mounts", b"cloud_bucket_mounts", "cloud_provider", b"cloud_provider", "cloud_provider_str", b"cloud_provider_str", "concurrency_limit", b"concurrency_limit", "custom_domain_info", b"custom_domain_info", "definition_type", b"definition_type", "function_name", b"function_name", "function_serialized", b"function_serialized", "function_type", b"function_type", "i6pn_enabled", b"i6pn_enabled", "image_id", b"image_id", "is_auto_snapshot", b"is_auto_snapshot", "is_builder_function", b"is_builder_function", "is_checkpointing_function", b"is_checkpointing_function", "is_class", b"is_class", "is_method", b"is_method", "max_concurrent_inputs", b"max_concurrent_inputs", "max_inputs", b"max_inputs", "method_definitions", b"method_definitions", "method_definitions_set", b"method_definitions_set", "module_name", b"module_name", "mount_ids", b"mount_ids", "object_dependencies", b"object_dependencies", "proxy_id", b"proxy_id", "pty_info", b"pty_info", "rate_limit", b"rate_limit", "resources", b"resources", "retry_policy", b"retry_policy", "runtime", b"runtime", "runtime_debug", b"runtime_debug", "runtime_perf_record", b"runtime_perf_record", "s3_mounts", b"s3_mounts", "schedule", b"schedule", "scheduler_placement", b"scheduler_placement", "secret_ids", b"secret_ids", "shared_volume_mounts", b"shared_volume_mounts", "snapshot_debug", b"snapshot_debug", "target_concurrent_inputs", b"target_concurrent_inputs", "task_idle_timeout_secs", b"task_idle_timeout_secs", "timeout_secs", b"timeout_secs", "untrusted", b"untrusted", "use_function_id", b"use_function_id", "use_method_name", b"use_method_name", "volume_mounts", b"volume_mounts", "warm_pool_size", b"warm_pool_size", "web_url", b"web_url", "web_url_info", b"web_url_info", "webhook_config", b"webhook_config", "worker_id", b"worker_id"]) -> None: ...
|
4039
|
+
def HasField(self, field_name: typing_extensions.Literal["X_experimental_proxy_ip", b"X_experimental_proxy_ip", "_cloud_provider", b"_cloud_provider", "_experimental_proxy_ip", b"_experimental_proxy_ip", "_proxy_id", b"_proxy_id", "_scheduler_placement", b"_scheduler_placement", "autoscaler_settings", b"autoscaler_settings", "checkpoint", b"checkpoint", "class_parameter_info", b"class_parameter_info", "cloud_provider", b"cloud_provider", "proxy_id", b"proxy_id", "pty_info", b"pty_info", "rate_limit", b"rate_limit", "resources", b"resources", "retry_policy", b"retry_policy", "schedule", b"schedule", "scheduler_placement", b"scheduler_placement", "web_url_info", b"web_url_info", "webhook_config", b"webhook_config"]) -> builtins.bool: ...
|
4040
|
+
def ClearField(self, field_name: typing_extensions.Literal["X_experimental_proxy_ip", b"X_experimental_proxy_ip", "_cloud_provider", b"_cloud_provider", "_experimental_buffer_containers", b"_experimental_buffer_containers", "_experimental_concurrent_cancellations", b"_experimental_concurrent_cancellations", "_experimental_custom_scaling", b"_experimental_custom_scaling", "_experimental_enable_gpu_snapshot", b"_experimental_enable_gpu_snapshot", "_experimental_group_size", b"_experimental_group_size", "_experimental_proxy_ip", b"_experimental_proxy_ip", "_experimental_task_templates", b"_experimental_task_templates", "_experimental_task_templates_enabled", b"_experimental_task_templates_enabled", "_proxy_id", b"_proxy_id", "_scheduler_placement", b"_scheduler_placement", "app_name", b"app_name", "autoscaler_settings", b"autoscaler_settings", "batch_linger_ms", b"batch_linger_ms", "batch_max_size", b"batch_max_size", "block_network", b"block_network", "checkpoint", b"checkpoint", "checkpointing_enabled", b"checkpointing_enabled", "class_parameter_info", b"class_parameter_info", "class_serialized", b"class_serialized", "cloud_bucket_mounts", b"cloud_bucket_mounts", "cloud_provider", b"cloud_provider", "cloud_provider_str", b"cloud_provider_str", "concurrency_limit", b"concurrency_limit", "custom_domain_info", b"custom_domain_info", "definition_type", b"definition_type", "function_name", b"function_name", "function_serialized", b"function_serialized", "function_type", b"function_type", "i6pn_enabled", b"i6pn_enabled", "image_id", b"image_id", "is_auto_snapshot", b"is_auto_snapshot", "is_builder_function", b"is_builder_function", "is_checkpointing_function", b"is_checkpointing_function", "is_class", b"is_class", "is_method", b"is_method", "max_concurrent_inputs", b"max_concurrent_inputs", "max_inputs", b"max_inputs", "method_definitions", b"method_definitions", "method_definitions_set", b"method_definitions_set", "module_name", b"module_name", "mount_ids", b"mount_ids", "object_dependencies", b"object_dependencies", "proxy_id", b"proxy_id", "pty_info", b"pty_info", "rate_limit", b"rate_limit", "resources", b"resources", "retry_policy", b"retry_policy", "runtime", b"runtime", "runtime_debug", b"runtime_debug", "runtime_perf_record", b"runtime_perf_record", "s3_mounts", b"s3_mounts", "schedule", b"schedule", "scheduler_placement", b"scheduler_placement", "secret_ids", b"secret_ids", "shared_volume_mounts", b"shared_volume_mounts", "snapshot_debug", b"snapshot_debug", "target_concurrent_inputs", b"target_concurrent_inputs", "task_idle_timeout_secs", b"task_idle_timeout_secs", "timeout_secs", b"timeout_secs", "untrusted", b"untrusted", "use_function_id", b"use_function_id", "use_method_name", b"use_method_name", "volume_mounts", b"volume_mounts", "warm_pool_size", b"warm_pool_size", "web_url", b"web_url", "web_url_info", b"web_url_info", "webhook_config", b"webhook_config", "worker_id", b"worker_id"]) -> None: ...
|
4032
4041
|
@typing.overload
|
4033
4042
|
def WhichOneof(self, oneof_group: typing_extensions.Literal["X_experimental_proxy_ip", b"X_experimental_proxy_ip"]) -> typing_extensions.Literal["_experimental_proxy_ip"] | None: ...
|
4034
4043
|
@typing.overload
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|