distributed 2021.10.0

Parameters
run_coroutine(self, function, *args, **kwargs)

This spawns a coroutine on all currently known workers and then waits for the coroutine on each worker. The coroutines' results are returned as a dictionary keyed by worker address.

Parameters

function : a coroutine function

(typically a function wrapped in gen.coroutine or

a Python 3.5+ async function)

*args : arguments for remote function
**kwargs : keyword arguments for remote function
wait : boolean (default True)

Whether to wait for coroutines to end.

workers : list

Workers on which to run the function. Defaults to all known workers.

Spawn a coroutine on all workers.

Examples

See :

Local connectivity graph

Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.

Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)

SVG is more flexible but power hungry; and does not scale well to 50 + nodes.

All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them


File: /distributed/client.py#2496
type: <class 'function'>
Commit: