[xray] Workers blocked in a ray.get release their resources (#1920)

* [xray] Throttle task dispatch by required resources
* Pass in number of initial workers into raylet command
* Workers blocked in a ray.get release resources
This commit is contained in:
Stephanie Wang
2018-04-18 20:59:58 -07:00
committed by Alexey Tumanov
parent 1c965fcfeb
commit aa07f1ce4e
10 changed files with 131 additions and 18 deletions
+1 -1
View File
@@ -504,7 +504,7 @@ class Worker(object):
# If there were objects that we weren't able to get locally, let the
# local scheduler know that we're now unblocked.
if was_blocked and not self.use_raylet:
if was_blocked:
self.local_scheduler_client.notify_unblocked()
assert len(final_results) == len(object_ids)