local_cluster
DummyClient
Bases: object
Object to use as dask Client-like object for doing local operations with the dask Client API.
Source code in pyhdx/local_cluster.py
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 |
|
blocking_cluster()
Start a dask LocalCluster and block until iterrupted
Source code in pyhdx/local_cluster.py
92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 |
|
default_client(timeout='2s', **kwargs)
Return Dask client at scheduler adress as defined by the global config
Source code in pyhdx/local_cluster.py
43 44 45 46 47 48 49 50 51 |
|
default_cluster(**kwargs)
Start a dask LocalCluster at the scheduler port given by the config
kwargs: override defaults
Source code in pyhdx/local_cluster.py
54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 |
|
verify_cluster(scheduler_address, timeout='2s')
Check if a valid dask scheduler is running at the provided scheduler_address
Source code in pyhdx/local_cluster.py
74 75 76 77 78 79 80 |
|
verify_cluster_async(scheduler_address, timeout='2s')
Check if a valid dask scheduler is running at the provided scheduler_address
Source code in pyhdx/local_cluster.py
83 84 85 86 87 88 89 |
|