mirror of
https://github.com/wassname/ray.git
synced 2026-08-02 13:01:01 +08:00
Start and clean up workers from the local scheduler. (#250)
* Start and clean up workers from the local scheduler Ability to kill workers in photon scheduler Test for old method of starting workers Common codepath for killing workers Common codepath for killing workers Photon test case for starting and killing workers fix build Fix component failure test Register a worker's pid as part of initial connection Address comments and revert photon_connect Set PATH during travis install Fix * Fix photon test case to accept clients on plasma manager fd
This commit is contained in:
committed by
Robert Nishihara
parent
ec175b7dfb
commit
2b8e6485e3
@@ -16,7 +16,10 @@ class ComponentFailureTest(unittest.TestCase):
|
||||
def f():
|
||||
ray.worker.global_worker.plasma_client.get(obj_id)
|
||||
|
||||
ray.init(num_workers=1, driver_mode=ray.SILENT_MODE)
|
||||
ray.worker._init(num_workers=1,
|
||||
driver_mode=ray.SILENT_MODE,
|
||||
start_workers_from_local_scheduler=False,
|
||||
start_ray_local=True)
|
||||
|
||||
# Have the worker wait in a get call.
|
||||
f.remote()
|
||||
@@ -44,7 +47,10 @@ class ComponentFailureTest(unittest.TestCase):
|
||||
def f():
|
||||
ray.worker.global_worker.plasma_client.wait([obj_id])
|
||||
|
||||
ray.init(num_workers=1, driver_mode=ray.SILENT_MODE)
|
||||
ray.worker._init(num_workers=1,
|
||||
driver_mode=ray.SILENT_MODE,
|
||||
start_workers_from_local_scheduler=False,
|
||||
start_ray_local=True)
|
||||
|
||||
# Have the worker wait in a get call.
|
||||
f.remote()
|
||||
|
||||
Reference in New Issue
Block a user