跳到主要内容

Job Management Commands: job

Query: ls

Entry:

lbg job ls

Summary:

usage: lbg job ls [-h] [-i INDEX] [-jg JOB_GROUP_ID] [-fa] [-pe] [-ru] [-fi] [-sc] [-st] [-sp]
[-q] [--csv] [--json] [--yaml] [--table] [--noheader] [-n NUMBER]

options:
-h, --help show this help message and exit
-i INDEX, --index INDEX
index of job group, default is 0, which use id of job group in rank n,
disable if job group id is specified
-jg JOB_GROUP_ID, --job_group_id JOB_GROUP_ID
job group id
-fa, --fail only show failed job
-pe, --pending only show pending job
-ru, --running only show running job
-fi, --finished only show finished job
-sc, --scheduling only show scheduling job
-st, --stopping only show stopping job
-sp, --stopped only show stopped job
-q, --quiet only show job id
--csv output with csv format
--json output with json format
--yaml output with yaml format
--table output with table format
--noheader does not print header information
-n NUMBER, --number NUMBER
number of result to be display, default all

Parameter description:

ParameterAbbreviationDescriptionRequired
--index-iShow all jobs in the nth job group, default is 0 (i.e., the latest job group). This item is invalid when the job group is specifiedNo
--job_group_id-jgShow jobs under the job group idNo
--fail-faShow only failed jobsNo
--pending-peShow only pending jobsNo
--running-ruShow only running jobsNo
--finish-fiShow only finished jobsNo
--scheduling-scShow only scheduling jobsNo
--stopping-stShow only stopping jobsNo
--stopped-spShow only stopped jobsNo
--quiet-qShow only Job IDNo
--number-nShow how many jobsNo

Example:

lbg job ls -i 5 --yaml # View all jobs under the 5th job group and output in yaml format
lbg job ls -jg 1022 -fi # View all finished jobs in the 1022 Job Group

Submit: submit

Entry:

lbg job submit

Summary:

usage: lbg job submit [-h] [-i FILE] [-p INPUT] [-jt JOB_TYPE] [-jgid JOB_GROUP_ID]
[-pjid PROJECT_ID] [-n JOB_NAME] [-im IMAGE_NAME] [-ds DISK_SIZE]
[-sc SCASS_TYPE] [-mt MACHINE_TYPE] [-nn NNODE] [-igid INSTANCE_GROUP_ID]
[-c CMD] [-l LOG_FILE] [-o [OUT_FILES]] [-pf PLATFORM] [-r REGION]
[-odm ON_DEMAND] [-ckptt CHECKPOINT_TIME] [-ckptf [CHECKPOINT_FILES]] [-dpb]
[-oji] [-ojgi]

options:
-h, --help show this help message and exit
-i FILE, --file FILE predefined file
-p INPUT, --input INPUT
input file location
-jt JOB_TYPE, --job_type JOB_TYPE
indicate/container
-jgid JOB_GROUP_ID, --job_group_id JOB_GROUP_ID
job group id
-pjid PROJECT_ID, --project_id PROJECT_ID
project id, will overwrite default
-n JOB_NAME, --job_name JOB_NAME
name
-im IMAGE_NAME, --image_name IMAGE_NAME
image name
-ds DISK_SIZE, --disk_size DISK_SIZE
disk size (GB)
-sc SCASS_TYPE, --scass_type SCASS_TYPE
scass type
-mt MACHINE_TYPE, --machine_type MACHINE_TYPE
machine type
-nn NNODE, --nnode NNODE
nnode
-igid INSTANCE_GROUP_ID, --instance_group_id INSTANCE_GROUP_ID
instance group id