Repository navigation
Actually support uvloop in distributed - #5531
Conversation
|
oof, looks like we were accidentally relying on creating event loops in lots of places. More to do here. |
|
Hmmm, this will now pass (at least on linux) any specific test, but fails on a full run. Will have to dig in more later. |
Previously distributed relied on the AnyThreadEventLoopPolicy, which configuring uvloop would override, preventing distributed from actually working with uvloop. We remove the need for `AnyThreadEventLoopPolicy` and fixup uvloop configuration to fix this. This also standardizes the `.asynchronous` and `sync` methods on classes that support them. This is currently `Client`, `Cluster`, and `Semaphore` for some reason. `Event`/`Lock`/... don't have these methods, not sure why semaphore does, but I left it as is for now.
def51f6 to
538ab99
Compare
|
I believe the windows failures are due to flaky tests. This should be ready for review. |
|
The win py3.7 failure is a known flaky test. I cannot classify the win py3.9 failure. It fails during teardown since some client instance is still around. I don't think this is a flaky test but it is hard to tell since there is also a timeout involved |
fjetter
left a comment
There was a problem hiding this comment.
These changes look great. I think it's been long overdue to clean this up, especially the code you pulled out into SyncMethodMixin and in_async_call.
I'm not entirely sure about the win py3.9 test failure but otherwise this can be merged from my POV
|
Thanks for the review Florian! |
Previously distributed relied on the AnyThreadEventLoopPolicy,
which configuring uvloop would override, preventing distributed from
actually working with uvloop. We remove the need for
AnyThreadEventLoopPolicyand fixup uvloop configuration to fix this.This also standardizes the
.asynchronousandsyncmethods on classesthat support them. This is currently
Client,Cluster, andSemaphorefor some reason.Event/Lock/... don't have thesemethods, not sure why semaphore does, but I left it as is for now.
Fixes #5309, supersedes #5312.