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 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 {