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
7 changes: 5 additions & 2 deletions distributed/diagnostics/tests/test_progress.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,17 @@ def h(*args):


@nodebug
@pytest.mark.flaky(reruns=10, reruns_delay=5)
@gen_cluster(client=True)
async def test_many_Progress(c, s, a, b):
x = c.submit(f, 1)
y = c.submit(g, x)
z = c.submit(h, y)

bars = [Progress(keys=[z], scheduler=s) for _ in range(10)]
# Give each bar a unique name; otherwise they all tokenize to the same
# plugin name and clobber each other in Scheduler.plugins. If z is still
# processing when setup() runs (e.g. on slow CI), the second bar's
# add_plugin() would then warn "overwriting", which is raised as an error.
bars = [Progress(keys=[z], scheduler=s, name=f"progress-{i}") for i in range(10)]
await asyncio.gather(*(bar.setup() for bar in bars))
await z

Expand Down
Loading