Skip to content
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
8 changes: 6 additions & 2 deletions distributed/scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@

import dask
import dask.utils
from dask._expr import LLGExpr
from dask._task_spec import DependenciesMapping, GraphNode, convert_legacy_graph
from dask.core import istask, validate_key
from dask.typing import Key, no_default
Expand Down Expand Up @@ -4878,9 +4879,12 @@ async def update_graph(

materialization_done = time()
logger.debug("Materialization done. Got %i tasks.", len(dsk))
# Most/all other expression types are implementing their own
# culling. For LLGExpr we just don't know
explicit_culling = isinstance(expr, LLGExpr)
del expr

dsk = _cull(dsk, keys)
if explicit_culling:
dsk = _cull(dsk, keys)

if not internal_priority:
internal_priority = await offload(dask.order.order, dsk=dsk)
Expand Down
Loading