class_docstr: Wrapper around the dask client.
  
  .. warning::
  
     The Dask executor can be pickled and used inside a subprocess,
     the pickled client will use the main client that was spawned in the main process,
     but you cannot spawn clients inside a subprocess.
class_docstr_tok: ["Wrapper","around","the","dask","client",".","..","warning",":",":","The","Dask","executor","can","be","pickled","and","used","inside","a","subprocess",",","the","pickled","client","will","use","the","main","client","that","was","spawned","in","the","main","process",",","but","you","can","not","spawn","clients","inside","a","subprocess","."]
code: def __init__(self, n_workers=-1, client=None, **config):
      super().__init__(n_workers=n_workers)
  
      if not HAS_DASK:
          raise ImportError(
              "Dask must be installed to use Dask executor."
          )
  
      self.config = config
      if client is None:
          client = Client(**self.config)
  
      self.client = client
  
imports: import traceback
  from orion.executor.base import AsyncException, AsyncResult, BaseExecutor, ExecutorClosed, Future
label_desc: Use image node_id 1 to create a new Dask object from inherited base classes: BaseExecutor with example: obj = Dask(n_workers, client)