Skip to content
Merged
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
6 changes: 5 additions & 1 deletion distributed/tests/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -6035,8 +6035,12 @@ async def test_mixing_clients_same_scheduler(s, a, b):
Client(s.address, asynchronous=True) as c2,
):
future = c1.submit(inc, 1)

# Prevent race condition where c2.submit reaches the scheduler
# before c1.submit and future.key is not yet known to the scheduler.
await c1.publish_dataset(x=future)

assert await c2.submit(inc, future) == 3
assert not s.tasks


@gen_cluster()
Expand Down
Loading