Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dask/dask
/ test_persist
Function
test_persist
dask/tests/test_distributed.py:72–77 ·
view source on GitHub ↗
(c, s, a, b)
Source
from the content-addressed store, hash-verified
70
71
@gen_cluster(client=True)
72
async
def
test_persist(c, s, a, b):
73
x = delayed(inc)(1)
74
x2 = c.persist(x)
75
76
await wait(x2)
77
assert x2.key in a.data or x2.key in b.data
78
79
80
def
test_persist_nested(c):
Callers
nothing calls this directly
Calls
3
delayed
Function · 0.90
wait
Function · 0.85
persist
Method · 0.45
Tested by
no test coverage detected