This commit is contained in:
Si-Yuan
2019-02-14 09:22:45 +08:00
committed by Philipp Moritz
parent 2dccf383dd
commit 2de31eb489
3 changed files with 14 additions and 21 deletions
+3 -2
View File
@@ -55,8 +55,9 @@ class Node(object):
connect_only (bool): If true, connect to the node without starting
new processes.
"""
assert not (shutdown_at_exit and connect_only), (
"'shutdown_at_exit' and 'connect_only' cannot be both true.")
if shutdown_at_exit and connect_only:
raise ValueError("'shutdown_at_exit' and 'connect_only' cannot "
"be both true.")
self.all_processes = {}
ray_params.update_if_absent(