Skip to content

Commit

Permalink
Invoke garbage collect during test_spill if it initially fails
Browse files Browse the repository at this point in the history
  • Loading branch information
pentschev committed Oct 3, 2023
1 parent 8551071 commit 359d46b
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions dask_cuda/tests/test_spill.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import gc
import os
from time import sleep

Expand Down Expand Up @@ -288,6 +289,7 @@ async def test_cudf_cluster_device_spill(params):
await wait(cdf2)

del cdf
gc.collect()

await client.run(
assert_host_chunks,
Expand All @@ -307,9 +309,15 @@ async def test_cudf_cluster_device_spill(params):

del cdf2

await client.run(
delayed_worker_assert,
0,
0,
0,
)
while True:
try:
await client.run(
delayed_worker_assert,
0,
0,
0,
)
except AssertionError:
gc.collect()
else:
break

0 comments on commit 359d46b

Please sign in to comment.