{"action":"created","issue":{"url":"https://api.github.com/repos/dask/distributed/issues/2013","repository_url":"https://api.github.com/repos/dask/distributed","labels_url":"https://api.github.com/repos/dask/distributed/issues/2013/labels{/name}","comments_url":"https://api.github.com/repos/dask/distributed/issues/2013/comments","events_url":"https://api.github.com/repos/dask/distributed/issues/2013/events","html_url":"https://github.com/dask/distributed/pull/2013","id":327406973,"node_id":"MDExOlB1bGxSZXF1ZXN0MTkxMjA5OTQ3","number":2013,"title":"Replace deprecated workers.iloc with workers.values()","user":{"login":"grantjenks","id":118304,"node_id":"MDQ6VXNlcjExODMwNA==","avatar_url":"https://avatars2.githubusercontent.com/u/118304?v=4","gravatar_id":"","url":"https://api.github.com/users/grantjenks","html_url":"https://github.com/grantjenks","followers_url":"https://api.github.com/users/grantjenks/followers","following_url":"https://api.github.com/users/grantjenks/following{/other_user}","gists_url":"https://api.github.com/users/grantjenks/gists{/gist_id}","starred_url":"https://api.github.com/users/grantjenks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grantjenks/subscriptions","organizations_url":"https://api.github.com/users/grantjenks/orgs","repos_url":"https://api.github.com/users/grantjenks/repos","events_url":"https://api.github.com/users/grantjenks/events{/privacy}","received_events_url":"https://api.github.com/users/grantjenks/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2018-05-29T16:56:10Z","updated_at":"2018-06-03T03:11:31Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/dask/distributed/pulls/2013","html_url":"https://github.com/dask/distributed/pull/2013","diff_url":"https://github.com/dask/distributed/pull/2013.diff","patch_url":"https://github.com/dask/distributed/pull/2013.patch"},"body":"Replace deprecated workers.iloc with workers.values()."},"comment":{"url":"https://api.github.com/repos/dask/distributed/issues/comments/394131713","html_url":"https://github.com/dask/distributed/pull/2013#issuecomment-394131713","issue_url":"https://api.github.com/repos/dask/distributed/issues/2013","id":394131713,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NDEzMTcxMw==","user":{"login":"mrocklin","id":306380,"node_id":"MDQ6VXNlcjMwNjM4MA==","avatar_url":"https://avatars3.githubusercontent.com/u/306380?v=4","gravatar_id":"","url":"https://api.github.com/users/mrocklin","html_url":"https://github.com/mrocklin","followers_url":"https://api.github.com/users/mrocklin/followers","following_url":"https://api.github.com/users/mrocklin/following{/other_user}","gists_url":"https://api.github.com/users/mrocklin/gists{/gist_id}","starred_url":"https://api.github.com/users/mrocklin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrocklin/subscriptions","organizations_url":"https://api.github.com/users/mrocklin/orgs","repos_url":"https://api.github.com/users/mrocklin/repos","events_url":"https://api.github.com/users/mrocklin/events{/privacy}","received_events_url":"https://api.github.com/users/mrocklin/received_events","type":"User","site_admin":false},"created_at":"2018-06-03T03:11:31Z","updated_at":"2018-06-03T03:11:31Z","author_association":"MEMBER","body":"I got that with the following diff\r\n\r\n```diff\r\nmrocklin@carbon:~/workspace/distributed$ git diff\r\ndiff --git a/distributed/scheduler.py b/distributed/scheduler.py\r\nindex 3859075..f02f90e 100644\r\n--- a/distributed/scheduler.py\r\n+++ b/distributed/scheduler.py\r\n@@ -3137,6 +3137,8 @@ class Scheduler(ServerNode):\r\n             else:  # dumb but fast in large case\r\n                 worker = self.idle[self.n_tasks % len(self.idle)]\r\n         else:\r\n+            if not self.workers_values:\r\n+                import pdb; pdb.set_trace()\r\n             if len(self.workers) < 20:  # smart but linear in small case\r\n                 worker = min(self.workers_values,\r\n                              key=operator.attrgetter('occupancy'))\r\n```\r\n\r\nAnd then running this test\r\n\r\n    py.test distributed/bokeh/tests/test_components.py::test_profile_plot\r\n"}}
{"actor":{"display_login":"mrocklin"}}