modal 0.72.19__py3-none-any.whl → 0.72.21__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_proto/api_pb2.pyi CHANGED
@@ -7173,13 +7173,20 @@ class SandboxGetTaskIdRequest(google.protobuf.message.Message):
7173
7173
  DESCRIPTOR: google.protobuf.descriptor.Descriptor
7174
7174
 
7175
7175
  SANDBOX_ID_FIELD_NUMBER: builtins.int
7176
+ TIMEOUT_FIELD_NUMBER: builtins.int
7177
+ WAIT_UNTIL_READY_FIELD_NUMBER: builtins.int
7176
7178
  sandbox_id: builtins.str
7179
+ timeout: builtins.float
7180
+ wait_until_ready: builtins.bool
7181
+ """If true, waits until the container's postStart hook has been run before returning. Useful for detecting init failures."""
7177
7182
  def __init__(
7178
7183
  self,
7179
7184
  *,
7180
7185
  sandbox_id: builtins.str = ...,
7186
+ timeout: builtins.float = ...,
7187
+ wait_until_ready: builtins.bool = ...,
7181
7188
  ) -> None: ...
7182
- def ClearField(self, field_name: typing_extensions.Literal["sandbox_id", b"sandbox_id"]) -> None: ...
7189
+ def ClearField(self, field_name: typing_extensions.Literal["sandbox_id", b"sandbox_id", "timeout", b"timeout", "wait_until_ready", b"wait_until_ready"]) -> None: ...
7183
7190
 
7184
7191
  global___SandboxGetTaskIdRequest = SandboxGetTaskIdRequest
7185
7192
 
@@ -7187,13 +7194,24 @@ class SandboxGetTaskIdResponse(google.protobuf.message.Message):
7187
7194
  DESCRIPTOR: google.protobuf.descriptor.Descriptor
7188
7195
 
7189
7196
  TASK_ID_FIELD_NUMBER: builtins.int
7197
+ TASK_RESULT_FIELD_NUMBER: builtins.int
7190
7198
  task_id: builtins.str
7199
+ """This is None if the sandbox was terminated before a task could be scheduled."""
7200
+ @property
7201
+ def task_result(self) -> global___GenericResult:
7202
+ """If the task has already exited, this is the result."""
7191
7203
  def __init__(
7192
7204
  self,
7193
7205
  *,
7194
- task_id: builtins.str = ...,
7206
+ task_id: builtins.str | None = ...,
7207
+ task_result: global___GenericResult | None = ...,
7195
7208
  ) -> None: ...
7196
- def ClearField(self, field_name: typing_extensions.Literal["task_id", b"task_id"]) -> None: ...
7209
+ def HasField(self, field_name: typing_extensions.Literal["_task_id", b"_task_id", "_task_result", b"_task_result", "task_id", b"task_id", "task_result", b"task_result"]) -> builtins.bool: ...
7210
+ def ClearField(self, field_name: typing_extensions.Literal["_task_id", b"_task_id", "_task_result", b"_task_result", "task_id", b"task_id", "task_result", b"task_result"]) -> None: ...
7211
+ @typing.overload
7212
+ def WhichOneof(self, oneof_group: typing_extensions.Literal["_task_id", b"_task_id"]) -> typing_extensions.Literal["task_id"] | None: ...
7213
+ @typing.overload
7214
+ def WhichOneof(self, oneof_group: typing_extensions.Literal["_task_result", b"_task_result"]) -> typing_extensions.Literal["task_result"] | None: ...
7197
7215
 
7198
7216
  global___SandboxGetTaskIdResponse = SandboxGetTaskIdResponse
7199
7217
 
@@ -1,4 +1,4 @@
1
1
  # Copyright Modal Labs 2025
2
2
 
3
3
  # Note: Reset this value to -1 whenever you make a minor `0.X` release of the client.
4
- build_number = 19 # git: b81e8f9
4
+ build_number = 21 # git: 653aa96