Skip to content
This repository has been archived by the owner on Feb 10, 2021. It is now read-only.

worker_info dict has no key 'name' #95

Open
maxnoe opened this issue Oct 25, 2018 · 3 comments
Open

worker_info dict has no key 'name' #95

maxnoe opened this issue Oct 25, 2018 · 3 comments

Comments

@maxnoe
Copy link
Contributor

maxnoe commented Oct 25, 2018

On cluster.close(), this error is thrown on current master:

Traceback (most recent call last):
  File "/home/smmanoet/.local/lib/python3.6/site-packages/tornado/gen.py", line 326, in wrapper
    yielded = next(result)
  File "/home/smmanoet/.local/lib/python3.6/site-packages/dask_drmaa/core.py", line 285, in stop_workers
    v['name']: k for k, v in self.scheduler.worker_info.items()
  File "/home/smmanoet/.local/lib/python3.6/site-packages/dask_drmaa/core.py", line 285, in <dictcomp>
    v['name']: k for k, v in self.scheduler.worker_info.items()
KeyError: 'name'

I looked at the entries of worker_info, they only have the keys

cpu
memory
time
read_bytes
write_bytes
num_fds
executing
in_memory
ready
in_flight
@mrocklin
Copy link
Member

mrocklin commented Oct 25, 2018 via email

@jakirkham
Copy link
Member

jakirkham commented Oct 31, 2018

Hmm...have been pretty happily staying up-to-date with Dask and Distributed without many changes in this library for a while. There may very well be a bug, but not one I've seen it seems. Would happily accept a PR though.

Edit: Should add I'm using the last stable release of dask-drmaa as opposed to master.

@jakirkham
Copy link
Member

So ran into this recently. Maybe there was something off with my configuration before?

FWICT this line isn't really needed. The workers are shutdown through other means anyways. So maybe we should just remove it?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants