Skip to content

Commit

Permalink
merge from devel
Browse files Browse the repository at this point in the history
  • Loading branch information
andre-merzky committed Dec 3, 2024
2 parents 4783a40 + 2f53b82 commit 7678a39
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions src/radical/utils/zmq/pubsub.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def _bridge_initialize(self):
self._log.info(' sub on %s: %s', self._uid, self._addr_sub)

# make sure bind is active
time.sleep(0.1)
time.sleep(0.01)

# start polling for messages
self._poll = zmq.Poller()
Expand Down Expand Up @@ -202,7 +202,7 @@ def __init__(self, channel, url=None, log=None, prof=None, path=None):
self._socket.hwm = _HIGH_WATER_MARK
self._socket.connect(self._url)

time.sleep(0.1)
time.sleep(0.01)


# --------------------------------------------------------------------------
Expand Down Expand Up @@ -364,7 +364,7 @@ def __init__(self, channel, url=None, topic=None, cb=None,
self._sock.hwm = _HIGH_WATER_MARK
self._sock.connect(self._url)

time.sleep(0.1)
time.sleep(0.01)

# only allow `get()` and `get_nowait()`
self._interactive = True
Expand Down Expand Up @@ -577,7 +577,7 @@ def work_pub(uid, n, delay):
t_a.join()
t_b.join()

time.sleep(0.1)
time.sleep(0.01)

assert data['A']['A'] == c_a
assert data['B']['B'] == c_b
Expand Down
6 changes: 3 additions & 3 deletions src/radical/utils/zmq/queue.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ def _bridge_work(self):
# We don't want to use poll timouts since we use two
# competing polls and don't want the idle channel slow down
# the busy one.
time.sleep(0.1)
time.sleep(0.01)

except Exception:
self._log.exception('bridge failed')
Expand Down Expand Up @@ -438,7 +438,7 @@ def _listener(url, qname=None, uid=None):
qname = 'default'

assert url in Getter._callbacks
time.sleep(0.1)
time.sleep(0.01)

try:
term = Getter._callbacks.get(url, {}).get('term')
Expand Down Expand Up @@ -780,7 +780,7 @@ def work_pub(uid, n, delay):
t_a.join()
t_b.join()

time.sleep(0.1)
time.sleep(0.01)

import pprint
pprint.pprint(data)
Expand Down

0 comments on commit 7678a39

Please sign in to comment.