Skip to content
Open
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
4 changes: 3 additions & 1 deletion plugboard/connector/zmq_channel.py
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,9 @@ async def connect_recv(self) -> ZMQChannel:
self._recv_channel = ZMQChannel(
recv_socket=recv_socket, topic=self._topic, maxsize=self._maxsize
)
await asyncio.sleep(0.1) # Ensure connections established before first send. Better way?
# Allow extra time for the proxy subprocess's SUB socket subscription to propagate
# to XPUB before the sender starts publishing (ZMQ "slow joiner" problem).
await asyncio.sleep(0.5)
return self._recv_channel


Expand Down
1 change: 1 addition & 0 deletions tests/integration/test_process_with_components_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ def tempfile_path() -> _t.Generator[Path, None, None]:


@pytest.mark.asyncio
@pytest.mark.flaky(reruns=3) # Flaky on Github Actions with Ray + ZMQ proxy (slow joiner)
@pytest.mark.parametrize(
"process_cls, connector_cls",
[
Expand Down
Loading