Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
BalaBalaYi committed Oct 16, 2024
1 parent c123b9c commit 87d3244
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dlrover/python/master/node/event_callback.py
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ def _stop_job_if_needed(self, node: Node):
reason=job_exit_reason,
msg=(
"Critical node (type={}, id={}) is failed "
"and {}.".format(
"and {}".format(
node.type, node.id, node.unrecoverable_failure_msg
)
),
Expand All @@ -334,7 +334,7 @@ def _stop_job_if_needed(self, node: Node):
reason=job_exit_reason,
msg=(
"The number of worker failure exceeds the "
f"max failure limit: {max_failure_num}."
f"max failure limit: {max_failure_num}"
),
)
elif self._available_worker_num < self._min_node:
Expand All @@ -343,6 +343,6 @@ def _stop_job_if_needed(self, node: Node):
reason=job_exit_reason,
msg=(
"The available number of worker is less than the minimum"
f"number {self._min_node} of rdzv."
f"number {self._min_node} of rdzv"
),
)

0 comments on commit 87d3244

Please sign in to comment.