Creating an AioClient locks up in distributed 1.25.3
See original GitHub issueThis short reproducer works in distributed 1.25.2, but locks up in 1.25.3. This behavior is triggered in https://github.com/LiberTEM/LiberTEM/ when creating a dask cluster and leads to a hard freeze of the application.
Update: The behavior is observed both on Windows 10 and on Linux.
import asyncio
from dask import distributed as dd
from distributed.asyncio import AioClient
async def async_main():
cluster_kwargs = {
"threads_per_worker": 1,
"asynchronous": True,
"n_workers": 2
}
client_kwargs = {}
print("starting cluster...")
cluster = dd.LocalCluster(**(cluster_kwargs or {}))
print("cluster started.")
print("creating client...")
client = await AioClient(cluster, **(client_kwargs or {}))
print("success")
if __name__ == '__main__':
loop = asyncio.get_event_loop()
loop.run_until_complete(async_main())
Expected behavior: It continues working the same in all version past 1.25.2.
Issue Analytics
- State:
- Created 5 years ago
- Comments:17 (9 by maintainers)
Top Results From Across the Web
Changelog — Dask.distributed 2022.12.1 documentation
Note. This release changes the default scheduling mode to use queuing. This will significantly reduce cluster memory use in most cases, and generally ......
Read more >Docker Compose release notes | Docker Documentation
Fixed a bug where working with containers created with a version of Compose earlier than 1.23.0 would cause unexpected crashes.
Read more >Google Cloud release notes | Documentation
Create and use a list of preferred load-balancing policies. With this feature, if your first preferred policy can't be used by a particular...
Read more >Configuration and schema reference Red Hat Directory Server ...
It is possible for an attacker to send such a large packet size that it crashes Directory Server or ties it up indefinitely...
Read more >Kubernetes In-Tree to CSI Volume Migration Status Update
The solution we came up with was CSI migration: a feature that translates ... If you are a Kubernetes distribution maintainer, make sure...
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
I’m curious, can you just use a normal Client? Tornado and Asyncio have merged to the point where I’m starting to suspect that AioClient may no longer be worth the maintenance effort.
On Wed, Feb 20, 2019 at 4:06 AM Dieter Weber notifications@github.com wrote:
Yeah, I suggest pinning tornado 5 and deprecating
AioClient
as a wrapper forClient(asynchronous=True)
.