Skip to content

Commit 2c4d4b6

Browse files
authored
Define GPU-CR backend in API and regenerate protos (#135)
Add GpuCrBackendConfig to snapshot_agent.proto and BackendConfig oneof. Regenerate Go and Python proto bindings.
1 parent eaef376 commit 2c4d4b6

5 files changed

Lines changed: 273 additions & 191 deletions

File tree

pkg/client/python/pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ description = "Timeslice library including Snapshot Agent client"
99
readme = "README.md"
1010
requires-python = ">=3.8"
1111
dependencies = [
12-
"grpcio>=1.82.1",
13-
"protobuf>=5.26.1",
12+
"grpcio>=1.83.0",
13+
"protobuf>=7.35.1",
1414
]
1515

1616
[project.optional-dependencies]
1717
dev = [
18-
"grpcio-tools>=1.82.1",
18+
"grpcio-tools>=1.83.0",
1919
]
2020

2121
[tool.setuptools.packages.find]

pkg/client/python/timeslice/snapshot_agent/snapshot_agent_pb2.py

Lines changed: 57 additions & 55 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/client/python/timeslice/snapshot_agent/snapshot_agent_pb2_grpc.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
from timeslice.snapshot_agent import snapshot_agent_pb2 as timeslice_dot_snapshot__agent_dot_snapshot__agent__pb2
77

8-
GRPC_GENERATED_VERSION = '1.82.1'
8+
GRPC_GENERATED_VERSION = '1.83.0'
99
GRPC_VERSION = grpc.__version__
1010
_version_not_supported = False
1111

@@ -101,6 +101,10 @@ def WorkloadChannel(self, request_iterator, context):
101101
(no HTTP server) use this instead of AppEndpointConfig. The first message
102102
from the workload must be a RegisterWorkload; subsequent messages are
103103
CommandResults acknowledging AgentCommands.
104+
105+
Registration is node-scoped: the workload registers with the agent on
106+
its own node, and Snapshot/Restore requests carrying an AppChannelConfig
107+
must be sent to that same agent.
104108
"""
105109
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
106110
context.set_details('Method not implemented!')

0 commit comments

Comments
 (0)