cycls 0.0.2.78__tar.gz → 0.0.2.79__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cycls
3
- Version: 0.0.2.78
3
+ Version: 0.0.2.79
4
4
  Summary: Distribute Intelligence
5
5
  Author: Mohammed J. AlRujayi
6
6
  Author-email: mj@cycls.com
@@ -235,27 +235,15 @@ CMD ["python", "entrypoint.py"]
235
235
  tag = self._ensure_grpc_image()
236
236
  self._perform_auto_cleanup(keep_tag=tag)
237
237
 
238
- # Port mappings
239
- ports = {f'{GRPC_PORT}/tcp': None}
238
+ # Port mappings (fixed ports avoid race conditions)
239
+ ports = {f'{GRPC_PORT}/tcp': GRPC_PORT}
240
240
  if service_port:
241
241
  ports[f'{service_port}/tcp'] = service_port
242
242
 
243
243
  self._container = self.docker_client.containers.run(
244
244
  tag, detach=True, ports=ports, labels={self.managed_label: "true"}
245
245
  )
246
- self._container.reload()
247
-
248
- port_info = self._container.ports.get(f'{GRPC_PORT}/tcp')
249
- if not port_info:
250
- logs = self._container.logs().decode()[-2000:] if self._container else "No container"
251
- raise RuntimeError(
252
- f"Container failed to bind gRPC port.\n"
253
- f"Status: {self._container.status}\n"
254
- f"Ports: {self._container.ports}\n"
255
- f"Logs:\n{logs}"
256
- )
257
- self._host_port = int(port_info[0]['HostPort'])
258
-
246
+ self._host_port = GRPC_PORT
259
247
  self._client = RuntimeClient(port=self._host_port)
260
248
  if not self._client.wait_ready(timeout=10):
261
249
  raise RuntimeError("Container failed to start")
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "cycls"
3
- version = "0.0.2.78"
3
+ version = "0.0.2.79"
4
4
 
5
5
  packages = [{ include = "cycls" }]
6
6
  include = ["cycls/theme/**/*"]
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes