add cluster.wait_for_workers
(called by client.wait_for_workers
if the client.client
exists)
#6346
Labels
feature
Something is missing
good first issue
Clearly described and easy to accomplish. Good for beginners to the project.
p2
Affects more than a few users but doesn't prevent core functions
Currently users call
client.wait
to wait for a certain number of workers.Currently a common pattern is:
Cluster managers (like Coiled) would like to include custom handling to give users nice information about what's happening (including especially failures) while waiting for workers. At the moment, this isn't possible.
Proposal to make this possible:
cluster.wait_for_workers
(with logic similar to the existingclient.wait_for_workers
)client.wait_for_workers
should callcluster.wait_for_workers
if there's a cluster object.Then cluster managers can override
cluster.wait_for_workers
to provide custom handling, which will be called whether the user callscluster.wait_for_workers
orclient.wait_for_workers
.This suggestion arose from discussion with @jacobtomlinson in #6041.
The text was updated successfully, but these errors were encountered: