mirror of
https://github.com/wassname/ray.git
synced 2026-06-30 07:20:51 +08:00
Update tutorial. (#196)
* Update tutorial. * Small updates to documentation and code.
This commit is contained in:
committed by
Philipp Moritz
parent
87d8d05792
commit
ba8933e10f
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user