Asynchronous clients cannot compute delayed
See original GitHub issueRunning dask.compute
on a delayed
function with an asynchronous client raises an Exception
. Locally, I see 'coroutine' object is not iterable
, but in the Binder I see zip
complains about the first argument not being iterable. I presume these are the same errors that relate to differences in the Python version.
from dask import distributed, delayed
import dask
import numpy as np
client = await distributed.Client(asynchronous=True)
client
@delayed(pure=True)
def random_data(n):
return np.random.random(size=n)
data = random_data(24)
dask.compute(data)
Issue Analytics
- State:
- Created 2 years ago
- Comments:10 (7 by maintainers)
Top Results From Across the Web
Asynchronous Computation: Web Servers + Dask
Asynchronous off-process computation with Dask To resolve both of these problems we will offload computation to other processes or computers using Dask. ...
Read more >Async programming in Python with Dask - Stack Overflow
looking at http://distributed.dask.org/en/latest/asynchronous.html it seems to me that all of the examples need to await the background task in ...
Read more >Asynchronous Optimization Algorithms with Dask
This algorithm works by solving a small optimization problem on every chunk of our data using our current parameter estimates, bringing these ...
Read more >What is Asynchronous and What Does it Mean? - TechTarget
In computer programming, asynchronous operation means that a process operates ... according to an agreement made between the client and the network.
Read more >Task asynchronous programming model - Microsoft Learn
Asynchrony is essential for activities that are potentially blocking, such as web access. Access to a web resource sometimes is slow or delayed....
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
From briefly looking at this issue I think it may be a duplicate of https://github.com/dask/dask/issues/5518
Ah ok I agree that this is a dupe of https://github.com/dask/dask/issues/5518 sorry for the noise!