Skip to content

Specify data storage explicitly from Worker constructor - #2600

Merged
mrocklin merged 4 commits into
dask:masterfrom
mrocklin:worker-data-class
Apr 9, 2019
Merged

mrocklin merged 4 commits into
dask:masterfrom
mrocklin:worker-data-class

Conversation

@mrocklin

@mrocklin mrocklin commented Apr 8, 2019

Copy link
Copy Markdown
Member

This allows users to provide storage explicitly to the Worker and Nanny constructors as any of the following options:

  1. An explicit MutableMapping, like Worker(data={})
  2. A type, like Worker(data=dict)
  3. A type and keywords, like Worker(data=(MyDict, {'option': 123}))

Additionally, in testing I used w = yield Worker(...) and was surprised that this didn't work, so I fixed that everywhere as well.

This PR is working towards supporting a fancier spill-to-disk dictionary for device and host memory. See rapidsai/dask-cuda#30

@mrocklin
mrocklin merged commit d97b498 into dask:master Apr 9, 2019
@mrocklin
mrocklin deleted the worker-data-class branch April 9, 2019 15:32
darindf pushed a commit to darindf/distributed that referenced this pull request Apr 11, 2019
* Support providing data= keyword to worker directly

* Use Worker/Nanny.__await__ more extensively
muammar added a commit to muammar/distributed that referenced this pull request Apr 12, 2019
* upstream/master:
  Add RabbitMQ SchedulerPlugin example (dask#2604)
  add resources to scheduler update_graph plugin (dask#2603)
  Use ensure_bytes in serialize_error (dask#2588)
  Specify data storage explicitly from Worker constructor (dask#2600)
  Change bokeh port keywords to dashboard_address (dask#2589)
  .detach_() pytorch tensor to serialize data as numpy array. (dask#2586)
  Add warning if creating scratch directories takes a long time (dask#2561)
  Fix typo in pub-sub doc. (dask#2599)
  Allow return_when='FIRST_COMPLETED' in wait (dask#2598)
  Forward kwargs through Nanny to Worker (dask#2596)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant