cycls 0.0.2.76__tar.gz → 0.0.2.78__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.
- {cycls-0.0.2.76 → cycls-0.0.2.78}/PKG-INFO +1 -1
- {cycls-0.0.2.76 → cycls-0.0.2.78}/cycls/runtime.py +11 -1
- {cycls-0.0.2.76 → cycls-0.0.2.78}/cycls/sdk.py +2 -2
- {cycls-0.0.2.76 → cycls-0.0.2.78}/pyproject.toml +1 -1
- {cycls-0.0.2.76 → cycls-0.0.2.78}/README.md +0 -0
- {cycls-0.0.2.76 → cycls-0.0.2.78}/cycls/__init__.py +0 -0
- {cycls-0.0.2.76 → cycls-0.0.2.78}/cycls/auth.py +0 -0
- {cycls-0.0.2.76 → cycls-0.0.2.78}/cycls/cli.py +0 -0
- {cycls-0.0.2.76 → cycls-0.0.2.78}/cycls/default-theme/assets/index-B0ZKcm_V.css +0 -0
- {cycls-0.0.2.76 → cycls-0.0.2.78}/cycls/default-theme/assets/index-D5EDcI4J.js +0 -0
- {cycls-0.0.2.76 → cycls-0.0.2.78}/cycls/default-theme/index.html +0 -0
- {cycls-0.0.2.76 → cycls-0.0.2.78}/cycls/dev-theme/index.html +0 -0
- {cycls-0.0.2.76 → cycls-0.0.2.78}/cycls/grpc/__init__.py +0 -0
- {cycls-0.0.2.76 → cycls-0.0.2.78}/cycls/grpc/client.py +0 -0
- {cycls-0.0.2.76 → cycls-0.0.2.78}/cycls/grpc/runtime.proto +0 -0
- {cycls-0.0.2.76 → cycls-0.0.2.78}/cycls/grpc/runtime_pb2.py +0 -0
- {cycls-0.0.2.76 → cycls-0.0.2.78}/cycls/grpc/runtime_pb2_grpc.py +0 -0
- {cycls-0.0.2.76 → cycls-0.0.2.78}/cycls/grpc/server.py +0 -0
- {cycls-0.0.2.76 → cycls-0.0.2.78}/cycls/web.py +0 -0
|
@@ -244,7 +244,17 @@ CMD ["python", "entrypoint.py"]
|
|
|
244
244
|
tag, detach=True, ports=ports, labels={self.managed_label: "true"}
|
|
245
245
|
)
|
|
246
246
|
self._container.reload()
|
|
247
|
-
|
|
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'])
|
|
248
258
|
|
|
249
259
|
self._client = RuntimeClient(port=self._host_port)
|
|
250
260
|
if not self._client.wait_ready(timeout=10):
|
|
@@ -56,12 +56,12 @@ class AgentRuntime:
|
|
|
56
56
|
"""Make the runtime callable - delegates to the wrapped function."""
|
|
57
57
|
return self.func(*args, **kwargs)
|
|
58
58
|
|
|
59
|
-
def _local(self, port=8080
|
|
59
|
+
def _local(self, port=8080):
|
|
60
60
|
"""Run directly with uvicorn (no Docker)."""
|
|
61
61
|
print(f"Starting local server at localhost:{port}")
|
|
62
62
|
self.config.public_path = self.theme
|
|
63
63
|
_set_prod(self.config, False)
|
|
64
|
-
uvicorn.run(web(self.func, self.config), host="0.0.0.0", port=port
|
|
64
|
+
uvicorn.run(web(self.func, self.config), host="0.0.0.0", port=port)
|
|
65
65
|
|
|
66
66
|
def _runtime(self, prod=False):
|
|
67
67
|
"""Create a Runtime instance for deployment."""
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|