isolate 0.13.3__py3-none-any.whl → 0.13.4__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 isolate might be problematic. Click here for more details.

@@ -12,5 +12,5 @@ __version__: str
12
12
  __version_tuple__: VERSION_TUPLE
13
13
  version_tuple: VERSION_TUPLE
14
14
 
15
- __version__ = version = '0.13.3'
16
- __version_tuple__ = version_tuple = (0, 13, 3)
15
+ __version__ = version = '0.13.4'
16
+ __version_tuple__ = version_tuple = (0, 13, 4)
@@ -23,8 +23,6 @@ from isolate.connections.common import SerializationError, serialize_object
23
23
  from isolate.connections.grpc import definitions
24
24
  from isolate.connections.grpc.configuration import get_default_options
25
25
  from isolate.connections.grpc.interface import from_grpc
26
- from isolate.logger import logger
27
- from isolate.logs import LogLevel, LogSource
28
26
 
29
27
 
30
28
  @dataclass
@@ -117,7 +115,7 @@ class AgentServicer(definitions.AgentServicer):
117
115
  # depickling is basically involves code execution from the *user*.
118
116
  function = from_grpc(function)
119
117
  except SerializationError:
120
- self.log(traceback.format_exc())
118
+ traceback.print_exc()
121
119
  raise AbortException(
122
120
  f"The {function_kind} function could not be deserialized."
123
121
  )
@@ -154,7 +152,8 @@ class AgentServicer(definitions.AgentServicer):
154
152
  definition = serialize_object(serialization_method, result)
155
153
  except SerializationError:
156
154
  if stringized_tb:
157
- logger.log(LogLevel.ERROR, stringized_tb, LogSource.BRIDGE)
155
+ print(stringized_tb, file=sys.stderr)
156
+ self.log(traceback.format_exc())
158
157
  raise AbortException(
159
158
  "Error while serializing the execution result "
160
159
  f"(object of type {type(result)})."
@@ -179,7 +178,7 @@ class AgentServicer(definitions.AgentServicer):
179
178
  )
180
179
 
181
180
  def log(self, message: str) -> None:
182
- self._log.write(message)
181
+ self._log.write(message + "\n")
183
182
  self._log.flush()
184
183
 
185
184
  def abort_with_msg(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: isolate
3
- Version: 0.13.3
3
+ Version: 0.13.4
4
4
  Summary: Managed isolated environments for Python
5
5
  Author-email: Features & Labels <hello@fal.ai>
6
6
  Project-URL: Issues, https://github.com/fal-ai/isolate/issues
@@ -1,5 +1,5 @@
1
1
  isolate/__init__.py,sha256=uXOKnONs7sXgARNgElwr4_A1sKoA6ACHVEvs3IDiX1M,127
2
- isolate/_isolate_version.py,sha256=VXQPyzbmOGe0nuuEEus9EQY40THABR5BB9WWse8Z8LI,413
2
+ isolate/_isolate_version.py,sha256=dhPsd2j9Al5Z6JN-zXmB6-Uti2Ily2tvtEtKPTNHaCQ,413
3
3
  isolate/_version.py,sha256=05pXvy-yr5t3I1m9JMn42Ilzpg7fa8IB2J8a3G7t1cU,274
4
4
  isolate/logger.py,sha256=SehnK6rPx-HDqQHJ3sKWqhDGmD3fTDGBIkjnNQYnFJU,453
5
5
  isolate/logs.py,sha256=R_AHUVYD18z_PhtK_mDWi9Gch79CxmwHY09hUDShtwg,2079
@@ -24,7 +24,7 @@ isolate/connections/_local/_base.py,sha256=YGf141VgXErrXYNyRN7sXcts2SemlFEEocZsK
24
24
  isolate/connections/_local/agent_startup.py,sha256=swCs6Q0yVkDw7w-RftizHSMyJDM7DQwuP3TB0qI1ucg,1552
25
25
  isolate/connections/grpc/__init__.py,sha256=tcesLxlC36P6wSg2lBcO2egsJWMbSKwc8zFXhWac3YU,85
26
26
  isolate/connections/grpc/_base.py,sha256=qyagLVl4BOmkJvbFDLyA2-IZNkXeTRGOgRGGcvcyQwM,5713
27
- isolate/connections/grpc/agent.py,sha256=eXEVHqwqT1p-8V8UEVC5qD5jsTcYaZicaRFLxxmJLec,7757
27
+ isolate/connections/grpc/agent.py,sha256=CvcYunQkjwkKcN8NbXeyVWNJtgOvbpwjvUI0Cwl3OqE,7697
28
28
  isolate/connections/grpc/configuration.py,sha256=50YvGGHA9uyKg74xU_gc73j7bsFk973uIpMhmw2HhxY,788
29
29
  isolate/connections/grpc/interface.py,sha256=yt63kytgXRXrTnjePGJVdXz4LJJVSSrNkJCF1yz6FIE,2270
30
30
  isolate/connections/grpc/definitions/__init__.py,sha256=Z0453Bbjoq-Oxm2Wfi9fae-BFf8YsZwmuh88strmvxo,459
@@ -53,9 +53,9 @@ isolate/server/health/health.proto,sha256=wE2_QD0OQAblKkEBG7sALLXEOj1mOLKG-FbC4t
53
53
  isolate/server/health/health_pb2.py,sha256=onOdP3M4Tpqhqs2PlGcyfoKe2VVKUEDx5ALeRcObb9A,1899
54
54
  isolate/server/health/health_pb2.pyi,sha256=CPyvxvDzra-1d-mBsukaJnscMUDBaqSACvo9LiXlFzo,2416
55
55
  isolate/server/health/health_pb2_grpc.py,sha256=XgsULrnRBmYIqvKr8eI7bqs6NIea5A0kkqdOOc2JHBY,5303
56
- isolate-0.13.3.dist-info/LICENSE,sha256=427vuyirL5scgBLqA9UWcdnxKrtSGc0u_JfUupk6lAA,11359
57
- isolate-0.13.3.dist-info/METADATA,sha256=o-iPomzdzL4NPtUhM1hze-RI6UJbLl0xyibSks4oOdg,3209
58
- isolate-0.13.3.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
59
- isolate-0.13.3.dist-info/entry_points.txt,sha256=s3prh2EERaVCbL8R45tfY5WFPZ1TsYOsz305YR7s-Pc,360
60
- isolate-0.13.3.dist-info/top_level.txt,sha256=W9QJBHcq5WXRkbOXf25bvftzFsOZZN4n1DAatdroZrs,8
61
- isolate-0.13.3.dist-info/RECORD,,
56
+ isolate-0.13.4.dist-info/LICENSE,sha256=427vuyirL5scgBLqA9UWcdnxKrtSGc0u_JfUupk6lAA,11359
57
+ isolate-0.13.4.dist-info/METADATA,sha256=tcbkgDOLzXHtoonohNGTNVVOlXI_9UUI38P4GRV7UZo,3209
58
+ isolate-0.13.4.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
59
+ isolate-0.13.4.dist-info/entry_points.txt,sha256=s3prh2EERaVCbL8R45tfY5WFPZ1TsYOsz305YR7s-Pc,360
60
+ isolate-0.13.4.dist-info/top_level.txt,sha256=W9QJBHcq5WXRkbOXf25bvftzFsOZZN4n1DAatdroZrs,8
61
+ isolate-0.13.4.dist-info/RECORD,,