Skip to content

Commit

Permalink
Debug flaky test_robust_to_bad_sizeof_estimates
Browse files Browse the repository at this point in the history
  • Loading branch information
gjoseph92 committed Jun 22, 2021
1 parent c3539c2 commit e786f39
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions distributed/tests/test_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -1111,6 +1111,7 @@ async def test_robust_to_bad_sizeof_estimates(c, s, a):
np = pytest.importorskip("numpy")
memory = psutil.Process().memory_info().rss
a.memory_limit = memory / 0.7 + 400e6
print("memory limit:", format_bytes(a.memory_limit))

class BadAccounting:
def __init__(self, data):
Expand All @@ -1128,6 +1129,12 @@ def f(n):

start = time()
while not a.data.disk:
print(
"RSS:",
format_bytes(psutil.Process().memory_info().rss),
"disk:",
list(a.data.disk),
)
await asyncio.sleep(0.1)
assert time() < start + 5

Expand Down

0 comments on commit e786f39

Please sign in to comment.