mirror of
https://github.com/wassname/ray.git
synced 2026-06-30 09:41:11 +08:00
Fix spelling of occurred (#10792)
This commit is contained in:
@@ -305,7 +305,7 @@ def teardown_cluster(config_file: str, yes: bool, workers_only: bool,
|
||||
# todo: add better exception info
|
||||
cli_logger.verbose_error("{}", str(e))
|
||||
cli_logger.warning(
|
||||
"Exception occured when stopping the cluster Ray runtime "
|
||||
"Exception occurred when stopping the cluster Ray runtime "
|
||||
"(use -v to dump teardown exceptions).")
|
||||
cli_logger.warning(
|
||||
"Ignoring the exception and "
|
||||
|
||||
@@ -142,6 +142,7 @@ class Exporter(threading.Thread):
|
||||
self.dashboard_controller.tune_info(),
|
||||
self.dashboard_controller.tune_availability())
|
||||
except Exception as e:
|
||||
logger.error("Exception occured while exporting metrics: {}.\n"
|
||||
"Traceback: {}".format(e, traceback.format_exc()))
|
||||
logger.error(
|
||||
"Exception occurred while exporting metrics: {}.\n"
|
||||
"Traceback: {}".format(e, traceback.format_exc()))
|
||||
continue
|
||||
|
||||
@@ -340,7 +340,7 @@ class FunctionRunner(Trainable):
|
||||
except queue.Empty:
|
||||
pass
|
||||
|
||||
# check if error occured inside the thread runner
|
||||
# check if error occurred inside the thread runner
|
||||
if result is None:
|
||||
# only raise an error from the runner if all results are consumed
|
||||
self._report_thread_runner_error(block=True)
|
||||
|
||||
@@ -1005,7 +1005,8 @@ def print_logs(redis_client, threads_stopped, job_id):
|
||||
def print_error_messages_raylet(task_error_queue, threads_stopped):
|
||||
"""Prints message received in the given output queue.
|
||||
|
||||
This checks periodically if any un-raised errors occured in the background.
|
||||
This checks periodically if any un-raised errors occurred in the
|
||||
background.
|
||||
|
||||
Args:
|
||||
task_error_queue (queue.Queue): A queue used to receive errors from the
|
||||
|
||||
Reference in New Issue
Block a user