更新时间:2024-06-06 GMT+08:00

使用ma-cli ma-job stop命令停止ModelArts训练作业

执行ma-cli ma-job stop命令,可停止指定作业id的训练作业。

$ ma-cli ma-job stop -h
Usage: ma-cli ma-job stop [OPTIONS]

  Stop training job by job id.

  Example:

  Stop training job by job id
  ma-cli ma-job stop --job-id ${job_id}

Options:
  -i, --job-id TEXT       Get training job event by job id.  [required]
  -y, --yes               Confirm stop operation.
  -C, --config-file TEXT  Configure file path for authorization.
  -D, --debug             Debug Mode. Shows full stack trace when error occurs.
  -P, --profile TEXT      CLI connection profile to use. The default profile is "DEFAULT".
  -H, -h, --help          Show this message and exit.
表1 参数说明

参数名

参数类型

是否必选

参数说明

-i / --job-id

String

ModelArts训练作业ID。

-y / --yes

Bool

强制关闭指定训练作业。

示例

停止运行中的训练作业。

ma-cli ma-job stop --job-id efd3e2f8xxx