Obtaining ModelArts Training Jobs
Run the ma-cli ma-job get-job command to view training jobs or details about a specific job.
$ ma-cli ma-job get-job -h
Usage: ma-cli ma-job get-job [OPTIONS]
Get job details.
Example:
# Get train job details by job name
ma-cli ma-job get-job -n ${job_name}
# Get train job details by job id
ma-cli ma-job get-job -i ${job_id}
# Get train job list
ma-cli ma-job get-job --page-size 5 --page-num 1
Options:
-i, --job-id TEXT Get training job details by job id.
-n, --job-name TEXT Get training job details by job name.
-pn, --page-num INTEGER Specify which page to query. [x>=1]
-ps, --page-size INTEGER RANGE The maximum number of results for this query. [1<=x<=50]
-v, --verbose Show detailed information about training job details.
-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.
|
Parameter |
Type |
Mandatory |
Description |
|---|---|---|---|
|
-i / --job-id |
String |
No |
Obtain details about a training job with a specified job ID. |
|
-n / --job-name |
String |
No |
Obtain a training job with a specified job name or filter training jobs by job name. |
|
-pn / --page-num |
Int |
No |
Page number. The default value is page 1. |
|
-ps / --page-size |
Int |
No |
Number of training jobs displayed on each page. The default value is 10. |
|
-v / --verbose |
Bool |
No |
Whether to display detailed information. This function is disabled by default. |
Examples
- Obtain a training task job a specified job ID.
ma-cli ma-job get-job -i b63e90xxx

- Filter training jobs by job name auto.
ma-cli ma-job get-job -n auto

Last Article: ma-cli ma-job Command Overview
Next Article: Submitting a ModelArts Training Job
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.