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:
Parameter | Abbreviation | Description | Required |
---|---|---|---|
--index | -i | Show 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 specified | No |
--job_group_id | -jg | Show jobs under the job group id | No |
--fail | -fa | Show only failed jobs | No |
--pending | -pe | Show only pending jobs | No |
--running | -ru | Show only running jobs | No |
--finish | -fi | Show only finished jobs | No |
--scheduling | -sc | Show only scheduling jobs | No |
--stopping | -st | Show only stopping jobs | No |
--stopped | -sp | Show only stopped jobs | No |
--quiet | -q | Show only Job ID | No |
--number | -n | Show how many jobs | No |
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