modal 1.1.1.dev16__py3-none-any.whl → 1.1.1.dev18__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/_functions.py +34 -16
- modal/_utils/auth_token_manager.py +1 -1
- modal/_utils/function_utils.py +1 -0
- modal/client.py +8 -1
- modal/client.pyi +9 -2
- modal/parallel_map.py +289 -0
- modal/parallel_map.pyi +21 -0
- {modal-1.1.1.dev16.dist-info → modal-1.1.1.dev18.dist-info}/METADATA +1 -1
- {modal-1.1.1.dev16.dist-info → modal-1.1.1.dev18.dist-info}/RECORD +17 -17
- modal_proto/api.proto +8 -0
- modal_proto/api_pb2.py +180 -172
- modal_proto/api_pb2.pyi +23 -1
- modal_version/__init__.py +1 -1
- {modal-1.1.1.dev16.dist-info → modal-1.1.1.dev18.dist-info}/WHEEL +0 -0
- {modal-1.1.1.dev16.dist-info → modal-1.1.1.dev18.dist-info}/entry_points.txt +0 -0
- {modal-1.1.1.dev16.dist-info → modal-1.1.1.dev18.dist-info}/licenses/LICENSE +0 -0
- {modal-1.1.1.dev16.dist-info → modal-1.1.1.dev18.dist-info}/top_level.txt +0 -0
modal_proto/api_pb2.pyi
CHANGED
|
@@ -649,6 +649,25 @@ SYSTEM_ERROR_CODE_NOSPC: SystemErrorCode.ValueType # 28
|
|
|
649
649
|
"""ENOSPC: No space left on device"""
|
|
650
650
|
global___SystemErrorCode = SystemErrorCode
|
|
651
651
|
|
|
652
|
+
class _TaskSnapshotBehavior:
|
|
653
|
+
ValueType = typing.NewType("ValueType", builtins.int)
|
|
654
|
+
V: typing_extensions.TypeAlias = ValueType
|
|
655
|
+
|
|
656
|
+
class _TaskSnapshotBehaviorEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_TaskSnapshotBehavior.ValueType], builtins.type): # noqa: F821
|
|
657
|
+
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
|
658
|
+
TASK_SNAPSHOT_BEHAVIOR_UNSPECIFIED: _TaskSnapshotBehavior.ValueType # 0
|
|
659
|
+
TASK_SNAPSHOT_BEHAVIOR_SNAPSHOT: _TaskSnapshotBehavior.ValueType # 1
|
|
660
|
+
TASK_SNAPSHOT_BEHAVIOR_RESTORE: _TaskSnapshotBehavior.ValueType # 2
|
|
661
|
+
TASK_SNAPSHOT_BEHAVIOR_NONE: _TaskSnapshotBehavior.ValueType # 3
|
|
662
|
+
|
|
663
|
+
class TaskSnapshotBehavior(_TaskSnapshotBehavior, metaclass=_TaskSnapshotBehaviorEnumTypeWrapper): ...
|
|
664
|
+
|
|
665
|
+
TASK_SNAPSHOT_BEHAVIOR_UNSPECIFIED: TaskSnapshotBehavior.ValueType # 0
|
|
666
|
+
TASK_SNAPSHOT_BEHAVIOR_SNAPSHOT: TaskSnapshotBehavior.ValueType # 1
|
|
667
|
+
TASK_SNAPSHOT_BEHAVIOR_RESTORE: TaskSnapshotBehavior.ValueType # 2
|
|
668
|
+
TASK_SNAPSHOT_BEHAVIOR_NONE: TaskSnapshotBehavior.ValueType # 3
|
|
669
|
+
global___TaskSnapshotBehavior = TaskSnapshotBehavior
|
|
670
|
+
|
|
652
671
|
class _TaskState:
|
|
653
672
|
ValueType = typing.NewType("ValueType", builtins.int)
|
|
654
673
|
V: typing_extensions.TypeAlias = ValueType
|
|
@@ -9619,6 +9638,7 @@ class TaskInfo(google.protobuf.message.Message):
|
|
|
9619
9638
|
ENQUEUED_AT_FIELD_NUMBER: builtins.int
|
|
9620
9639
|
GPU_TYPE_FIELD_NUMBER: builtins.int
|
|
9621
9640
|
SANDBOX_ID_FIELD_NUMBER: builtins.int
|
|
9641
|
+
SNAPSHOT_BEHAVIOR_FIELD_NUMBER: builtins.int
|
|
9622
9642
|
id: builtins.str
|
|
9623
9643
|
started_at: builtins.float
|
|
9624
9644
|
finished_at: builtins.float
|
|
@@ -9627,6 +9647,7 @@ class TaskInfo(google.protobuf.message.Message):
|
|
|
9627
9647
|
enqueued_at: builtins.float
|
|
9628
9648
|
gpu_type: builtins.str
|
|
9629
9649
|
sandbox_id: builtins.str
|
|
9650
|
+
snapshot_behavior: global___TaskSnapshotBehavior.ValueType
|
|
9630
9651
|
def __init__(
|
|
9631
9652
|
self,
|
|
9632
9653
|
*,
|
|
@@ -9637,9 +9658,10 @@ class TaskInfo(google.protobuf.message.Message):
|
|
|
9637
9658
|
enqueued_at: builtins.float = ...,
|
|
9638
9659
|
gpu_type: builtins.str = ...,
|
|
9639
9660
|
sandbox_id: builtins.str = ...,
|
|
9661
|
+
snapshot_behavior: global___TaskSnapshotBehavior.ValueType = ...,
|
|
9640
9662
|
) -> None: ...
|
|
9641
9663
|
def HasField(self, field_name: typing_extensions.Literal["result", b"result"]) -> builtins.bool: ...
|
|
9642
|
-
def ClearField(self, field_name: typing_extensions.Literal["enqueued_at", b"enqueued_at", "finished_at", b"finished_at", "gpu_type", b"gpu_type", "id", b"id", "result", b"result", "sandbox_id", b"sandbox_id", "started_at", b"started_at"]) -> None: ...
|
|
9664
|
+
def ClearField(self, field_name: typing_extensions.Literal["enqueued_at", b"enqueued_at", "finished_at", b"finished_at", "gpu_type", b"gpu_type", "id", b"id", "result", b"result", "sandbox_id", b"sandbox_id", "snapshot_behavior", b"snapshot_behavior", "started_at", b"started_at"]) -> None: ...
|
|
9643
9665
|
|
|
9644
9666
|
global___TaskInfo = TaskInfo
|
|
9645
9667
|
|
modal_version/__init__.py
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|