mirror of
https://github.com/wassname/ray.git
synced 2026-08-17 11:25:34 +08:00
Let workers get tasks from local scheduler. (#5)
* Restructure to have separate client and scheduler files. Shared stuff is in photon.h. * Let workers get tasks from local scheduler.
This commit is contained in:
committed by
Philipp Moritz
parent
ff8018db75
commit
64c5e0880e
+6
-2
@@ -30,8 +30,12 @@ class TestPhotonClient(unittest.TestCase):
|
||||
self.p2.kill()
|
||||
|
||||
def test_create(self):
|
||||
l = [photon.make_id(20 * "a"), photon.make_id(20 * "b"), photon.make_id(20 * "c")]
|
||||
self.photon_client.submit(20 * "a", l)
|
||||
l = [20 * "a", 20 * "b", 20 * "c"]
|
||||
r = [20 * "e", 20 * "f"]
|
||||
# Submit a task.
|
||||
self.photon_client.submit(20 * "d", l, r)
|
||||
# Get the task.
|
||||
task = self.photon_client.get_task()
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main(verbosity=2)
|
||||
|
||||
Reference in New Issue
Block a user