Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make test_steal_reschedule_reset_in_flight_occupancy non timing depen… #7010

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
13 changes: 12 additions & 1 deletion distributed/tests/test_steal.py
Original file line number Diff line number Diff line change
Expand Up @@ -1100,7 +1100,17 @@ async def test_steal_reschedule_reset_in_flight_occupancy(c, s, *workers):
range(6),
key=[f"r-{ix}" for ix in range(6)],
)
futs1 = [c.submit(slowinc, f, key=f"f1-{ix}") for f in roots for ix in range(4)]

def block(x, event):
event.wait()
return x + 1

event = Event()
futs1 = [
c.submit(block, f, event=event, key=f"f1-{ix}")
for f in roots
for ix in range(4)
]
while not w0.state.ready:
await asyncio.sleep(0.01)

Expand All @@ -1115,6 +1125,7 @@ async def test_steal_reschedule_reset_in_flight_occupancy(c, s, *workers):
steal.move_task_request(victim_ts, wsA, wsB)

s.reschedule(victim_key, stimulus_id="test")
await event.set()
await c.gather(futs1)

del futs1
Expand Down