mirror of
https://github.com/wassname/ray.git
synced 2026-07-10 09:40:47 +08:00
Introduce some stress tests. (#106)
* Retry first connection to redis in db_connect. * Declare usleep. * Formatting. * Introduce some stress tests.
This commit is contained in:
committed by
Philipp Moritz
parent
c740b165f4
commit
6441571d31
@@ -66,6 +66,9 @@ def cleanup():
|
||||
print("Ray did not shut down properly.")
|
||||
all_processes = []
|
||||
|
||||
def all_processes_alive():
|
||||
return all([p.poll() is None for p in all_processes])
|
||||
|
||||
def start_redis(num_retries=20, cleanup=True):
|
||||
"""Start a Redis server.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user