Skip to content

Don't cull in local scheduler, do cull in delayed - #3856

Merged
jcrist merged 1 commit into
dask:masterfrom
jcrist:cull-delayed-nocull-local-scheduler
Aug 6, 2018
Merged

jcrist merged 1 commit into
dask:masterfrom
jcrist:cull-delayed-nocull-local-scheduler

Conversation

@jcrist

@jcrist jcrist commented Aug 6, 2018

Copy link
Copy Markdown
Member
  • Removes culling from the local scheduler. This was (usually)
    unnecessary, as all the collections (except delayed) culled by default.
  • Adds culling to dask.delayed

Fixes #3735.

- Removes culling from the local scheduler. This was (usually)
unnecessary, as all the collections (except delayed) culled by default.
- Adds culling to ``dask.delayed``
def test_delayed_optimize():
x = Delayed('b', {'a': 1,
'b': (inc, 'a'),
'c': (inc, 'b')})

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The only way I was able to make a graph out of dask.delayed objects that required culling was from manually building the graph and wrapping it in a delayed object. This is because delayed objects manually build their graphs out of the arguments to the functions, it's not possible (afaict) to build a graph using just the delayed api that doesn't depend on all enclosed keys. (@mrocklin do you remember what you were doing to run into this issue?)

@mrocklin

mrocklin commented Aug 6, 2018 via email

Copy link
Copy Markdown
Member

@jcrist

jcrist commented Aug 6, 2018

Copy link
Copy Markdown
Member Author

Ah, of course, transitioning between collections and delayed objects. That makes sense.

I think the current test is good as is though, as it doesn't rely on other collections being present (i.e. will still run if numpy isn't installed).

@mrocklin

mrocklin commented Aug 6, 2018 via email

Copy link
Copy Markdown
Member

@jakirkham

Copy link
Copy Markdown
Member

Looks good.

Should we test that the local scheduler doesn't optimize?

@jcrist

jcrist commented Aug 6, 2018

Copy link
Copy Markdown
Member Author

I don't think so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants