Changes to local scheduler client protocol. (#435)

* Make local scheduler clients receive reply upon registration.

* Fix tests and linting.
This commit is contained in:
Robert Nishihara
2017-04-07 23:03:37 -07:00
committed by Philipp Moritz
parent 8061b3b596
commit 05fd4c2c37
10 changed files with 195 additions and 78 deletions
+2 -1
View File
@@ -23,6 +23,7 @@ PLASMA_STORE_MEMORY = 1000000000
ID_SIZE = 20
NUM_CLUSTER_NODES = 2
NIL_WORKER_ID = 20 * b"\xff"
NIL_ACTOR_ID = 20 * b"\xff"
# These constants must match the scheduling state enum in task.h.
@@ -101,7 +102,7 @@ class TestGlobalScheduler(unittest.TestCase):
static_resource_list=[10, 0])
# Connect to the scheduler.
local_scheduler_client = local_scheduler.LocalSchedulerClient(
local_scheduler_name, NIL_ACTOR_ID, False)
local_scheduler_name, NIL_WORKER_ID, NIL_ACTOR_ID, False)
self.local_scheduler_clients.append(local_scheduler_client)
self.local_scheduler_pids.append(p4)