mirror of
https://github.com/wassname/ray.git
synced 2026-08-12 12:20:11 +08:00
Remove timeout for Redis commands. (#649)
* update * Remove interaction between callback data identifier and event loop. * Remove tests that no longer apply.
This commit is contained in:
committed by
Robert Nishihara
parent
ee1d4e5ea2
commit
d4d2c03ac5
@@ -67,6 +67,23 @@ class TaskTests(unittest.TestCase):
|
||||
self.assertTrue(ray.services.all_processes_alive())
|
||||
ray.worker.cleanup()
|
||||
|
||||
def testSubmittingManyTasks(self):
|
||||
ray.init()
|
||||
|
||||
@ray.remote
|
||||
def f(x):
|
||||
return 1
|
||||
|
||||
def g(n):
|
||||
x = 1
|
||||
for i in range(n):
|
||||
x = f.remote(x)
|
||||
return x
|
||||
|
||||
ray.get([g(1000) for _ in range(100)])
|
||||
self.assertTrue(ray.services.all_processes_alive())
|
||||
ray.worker.cleanup()
|
||||
|
||||
def testGettingAndPutting(self):
|
||||
ray.init(num_workers=1)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user