Skip to content

Commit

Permalink
Updatedd the abort_task command usage. (#489)
Browse files Browse the repository at this point in the history
* Updatedd the abort_task command usage.

* codestyle.
  • Loading branch information
yhwen committed May 13, 2022
1 parent 7e5f56d commit d61d6fe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nvflare/private/fed/server/cmd_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def authorize_train(self, conn: Connection, args: List[str]):
if not run_number.startswith(WorkspaceConstants.WORKSPACE_PREFIX):
conn.append_error("syntax error: run_number must be run_XXX")
return False, None
destination = run_number[4:]
destination = run_number[len(WorkspaceConstants.WORKSPACE_PREFIX) :]
conn.set_prop(self.RUN_NUMBER, destination)

return self._authorize_actions(conn, args[2:], [Action.TRAIN])
Expand Down
2 changes: 1 addition & 1 deletion nvflare/private/fed/server/training_cmds.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def get_spec(self):
CommandSpec(
name=AdminCommandNames.ABORT_TASK,
description="abort the client current task execution",
usage="abort_task <client-name>",
usage="abort_task run_number <client-name>",
handler_func=self.abort_task,
authz_func=self.authorize_abort_client,
visible=True,
Expand Down

0 comments on commit d61d6fe

Please sign in to comment.