Update tutorial. (#196)

* Update tutorial.

* Small updates to documentation and code.
This commit is contained in:
Robert Nishihara
2017-01-10 23:52:38 -08:00
committed by Philipp Moritz
parent 87d8d05792
commit ba8933e10f
8 changed files with 128 additions and 172 deletions
+1 -1
View File
@@ -553,7 +553,7 @@ def check_connected(worker=global_worker):
Exception: An exception is raised if the worker is not connected.
"""
if not worker.connected:
raise RayConnectionError("This command cannot be called before Ray has been started. You can start Ray with 'ray.init()'.")
raise RayConnectionError("This command cannot be called before Ray has been started. You can start Ray with 'ray.init(num_workers=10)'.")
def print_failed_task(task_status):
"""Print information about failed tasks.