You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
raiseValueError("No global client found and no address provided")
When this function is being used from an asynchronous context the returned client object is asynchronous=False by default and will basically be useless.
For this purpose, it would be helpful to add this as an argument to get_client
My proposal would be, in the case of a default or current client to raise a RuntimeError in case the default/current doesn't correspond to the appropriate asnychronous setting.
Part of our API are various utility methods that are supposed to return the current, the default or a new client.
Top-level API is
worker.py::get_client
distributed/distributed/worker.py
Lines 2713 to 2778 in 0a88b76
When this function is being used from an asynchronous context the returned client object is
asynchronous=False
by default and will basically be useless.For this purpose, it would be helpful to add this as an argument to
get_client
My proposal would be, in the case of a default or current client to raise a
RuntimeError
in case the default/current doesn't correspond to the appropriate asnychronous setting.This relates to PrefectHQ/prefect#12971
The text was updated successfully, but these errors were encountered: