Fix spelling of occurred (#10792)

This commit is contained in:
scottwedge
2020-10-08 13:55:52 -04:00
committed by GitHub
parent 174bef56d4
commit 732cd9901b
4 changed files with 7 additions and 5 deletions
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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)
+2 -1
View File
@@ -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