MCPcopy Create free account
hub / github.com/dask/dask / has_sub_tasks

Function has_sub_tasks

dask/dot.py:43–50  ·  view source on GitHub ↗

Returns True if the task has sub tasks

(task)

Source from the content-addressed store, hash-verified

41
42
43def has_sub_tasks(task):
44 """Returns True if the task has sub tasks"""
45 if istask(task):
46 return True
47 elif isinstance(task, list):
48 return any(has_sub_tasks(i) for i in task)
49 else:
50 return False
51
52
53def name(x):

Callers 1

task_labelFunction · 0.85

Calls 2

istaskFunction · 0.90
anyFunction · 0.85

Tested by

no test coverage detected