From fd241c765712e2584759ed878696c1e7c05eee98 Mon Sep 17 00:00:00 2001 From: Matt Drozt Date: Wed, 26 Aug 2026 14:57:27 -0500 Subject: [PATCH 1/2] Update launch cmd in doc string --- example/rhapsody-exchange/dragon/driver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example/rhapsody-exchange/dragon/driver.py b/example/rhapsody-exchange/dragon/driver.py index e754c2b..0ce26b8 100644 --- a/example/rhapsody-exchange/dragon/driver.py +++ b/example/rhapsody-exchange/dragon/driver.py @@ -1,7 +1,7 @@ """RHAPSODY-launched Dragon DDict exchange, executed via RHAPSODY tasks. Run with: - dragon -s -- python3 driver.py + dragon -s -- driver.py RHAPSODY's DragonDataBackend constructs and owns the `dragon.data.ddict.DDict` -- this driver never constructs the DDict itself, unlike From 3857659bb68fbc2ae559af207c7d9bdc5f000790 Mon Sep 17 00:00:00 2001 From: Matt Drozt Date: Wed, 26 Aug 2026 14:58:21 -0500 Subject: [PATCH 2/2] Add a sleep command to give producer time to set keys Looks like `radex.clients.core.PyClient` can still block the thread even in an async context. This should be fixed after the demo and this sleep should be unneeded. --- example/rhapsody-exchange/redis/driver.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/example/rhapsody-exchange/redis/driver.py b/example/rhapsody-exchange/redis/driver.py index 66c886d..d9b6506 100644 --- a/example/rhapsody-exchange/redis/driver.py +++ b/example/rhapsody-exchange/redis/driver.py @@ -17,6 +17,7 @@ import asyncio import os +import time from rhapsody.api import ComputeTask, Session from rhapsody.backends import ConcurrentExecutionBackend @@ -51,6 +52,7 @@ def consume(descriptor): os.environ["RADEX_STORE_OPTS"] = "Standalone" client = RedisClient() + time.sleep(2) samples = client.wait_for_tensor(IncomingHandle("samples"), 10) count = client.wait_for_scalar(IncomingHandle("sample-count"), 10) return {