Skip to content

Commit 69e76de

Browse files
committed
Catch many more DistributedRuntime constructor changes
Signed-off-by: Graham King <[email protected]>
1 parent 3145291 commit 69e76de

File tree

9 files changed

+9
-9
lines changed

9 files changed

+9
-9
lines changed

examples/custom_backend/cancellation/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ async def main():
5050
return
5151

5252
loop = asyncio.get_running_loop()
53-
runtime = DistributedRuntime(loop, True)
53+
runtime = DistributedRuntime(loop, "file", True)
5454

5555
# Connect to middle server or direct server based on argument
5656
if use_middle_server:

examples/custom_backend/cancellation/middle_server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ async def generate(self, request, context):
5050
async def main():
5151
"""Start the middle server"""
5252
loop = asyncio.get_running_loop()
53-
runtime = DistributedRuntime(loop, True)
53+
runtime = DistributedRuntime(loop, "file", True)
5454

5555
# Create middle server handler
5656
handler = MiddleServer(runtime)

examples/custom_backend/cancellation/server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ async def generate(self, request, context):
3131
async def main():
3232
"""Start the demo server"""
3333
loop = asyncio.get_running_loop()
34-
runtime = DistributedRuntime(loop, True)
34+
runtime = DistributedRuntime(loop, "file", True)
3535

3636
# Create server component
3737
component = runtime.namespace("demo").component("server")

examples/custom_backend/nim/mock_nim_frontend.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ async def async_main():
123123

124124
# Create DistributedRuntime - similar to frontend/main.py line 246
125125
is_static = True # Use static mode (no etcd)
126-
runtime = DistributedRuntime(loop, is_static) # type: ignore[call-arg]
126+
runtime = DistributedRuntime(loop, "mem", is_static) # type: ignore[call-arg]
127127

128128
# Setup signal handlers for graceful shutdown
129129
def signal_handler():

lib/bindings/python/examples/cli/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def parse_args():
115115

116116
async def run():
117117
loop = asyncio.get_running_loop()
118-
runtime = DistributedRuntime(loop, False)
118+
runtime = DistributedRuntime(loop, "etcd", False)
119119

120120
args = parse_args()
121121

lib/bindings/python/tests/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,6 +430,6 @@ async def test_my_test(runtime):
430430
)
431431

432432
loop = asyncio.get_running_loop()
433-
runtime = DistributedRuntime(loop, True)
433+
runtime = DistributedRuntime(loop, "file", True)
434434
yield runtime
435435
runtime.shutdown()

lib/bindings/python/tests/test_kv_bindings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ async def distributed_runtime():
3434
Each test gets its own runtime in a forked process to avoid singleton conflicts.
3535
"""
3636
loop = asyncio.get_running_loop()
37-
runtime = DistributedRuntime(loop, False)
37+
runtime = DistributedRuntime(loop, "etcd", False)
3838
yield runtime
3939
runtime.shutdown()
4040

tests/planner/unit/test_virtual_connector.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def get_runtime():
3131
except Exception:
3232
# If no existing runtime, create a new one
3333
loop = asyncio.get_running_loop()
34-
_runtime_instance = DistributedRuntime(loop, False)
34+
_runtime_instance = DistributedRuntime(loop, "etcd", False)
3535

3636
return _runtime_instance
3737

tests/router/test_router_e2e_with_mockers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ def get_runtime():
226226
# No running loop, create a new one (sync context)
227227
loop = asyncio.new_event_loop()
228228
asyncio.set_event_loop(loop)
229-
_runtime_instance = DistributedRuntime(loop, False)
229+
_runtime_instance = DistributedRuntime(loop, "etcd", False)
230230

231231
return _runtime_instance
232232

0 commit comments

Comments
 (0)