Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion example/rhapsody-exchange/dragon/driver.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 2 additions & 0 deletions example/rhapsody-exchange/redis/driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

import asyncio
import os
import time

from rhapsody.api import ComputeTask, Session
from rhapsody.backends import ConcurrentExecutionBackend
Expand Down Expand Up @@ -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 {
Expand Down
Loading