question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Asynchronous clients cannot compute delayed

See original GitHub issue

Binder

Running 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:closed
  • Created 2 years ago
  • Comments:10 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
jrbourbeaucommented, May 14, 2021

From briefly looking at this issue I think it may be a duplicate of https://github.com/dask/dask/issues/5518

0reactions
jsignellcommented, May 14, 2021

Ah ok I agree that this is a dupe of https://github.com/dask/dask/issues/5518 sorry for the noise!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found