Package osh :: Package command :: Module remote
[frames] | no frames]

Module remote

source code

For API usage only, (for CLI use osh @CLUSTER [ ... ] syntax instead.)

Functions
 
remote(cluster, command, merge_key=None)
Executes command remotely on each node of cluster.
source code
Function Details

remote(cluster, command, merge_key=None)

source code 

Executes command remotely on each node of cluster. Execution on all nodes is done in parallel. If merge_key is specified, then the inputs of each thread are expected to be ordered by the merge_key. The sequences from the threads are then merged into a single sequence using the merge_key. (This function is identical to fork, except that the first argument is required to identify a cluster.)