Incompatible with dask in processes scheduler
See original GitHub issuefrom pyforest import *
import dask
def inc1(a):
return a + 1
def inc2(a):
return np.add(a, 1)
print(dask.compute(map(dask.delayed(inc1), [1,2,3]), scheduler='processes')[0])
print(dask.compute(map(dask.delayed(inc2), [1,2,3]), scheduler='processes')[0])
inc1 work, inc2 don’t
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Stalling Tasks? · Issue #5879 · dask/distributed - GitHub
P.S. Sometimes I'll stop the Dask processing and then retry running on the same batch it got stuck on, and then it will...
Read more >Running process scheduler in Dask distributed - Stack Overflow
The distributed scheduler allows you to work with any number of processes, via any of the deployment options. Each of these can have...
Read more >Futures - Dask documentation
Dask futures reimplements the Python futures API so you can scale your Python futures workflow across a Dask cluster.
Read more >Understanding Dask Architecture: Client, Scheduler, Workers
Common pitfalls when working with Dask · Make a task graph that is too big · Make a graph with too many sinks...
Read more >Distribute Experiments Across Machines - garage
This machine will run dask-scheduler and Prefect. ... Since the scheduler runs as a foreground process, run it in a new terminal session....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@lumyuto I ran your code on Google Colab and got the following error:
This error is related to the Dask library itself.
Thank you for the bug report. We discussed this internally but had no idea on how to even start working on this problem. If you can come up with a solution that would be great.
So long, we will flag this as “help wanted” and will see if someone comes up with a solution.
In the mean time, you can also just import
np
explicitely because it will overwrite pyforest. So, you should be able to useDoes this work for you?