跳到主要内容

Job Group Management Command:job_group

Create:create

Entry:

bohr job_group create

Summary:

Usage:
bohr job_group create [flags]

Flags:
-h, --help help for create
-n, --job_name string job name
-p, --project_id int project id

Parameter Description:

ParameterAbbreviationDescriptionRequired
--job_name-nthe name of job groupYes
--project_id-pthe project id of job groupYes

Example:

$ bohr job_group create  -n test -p 123 
# Create a job group named test with project ID 123
危险

The job_group_id created here is different from the JOB GROUP ID obtained after creating a job. The task group ID generated through bohr job_group create is used to submit multiple tasks to the same task group. It is only applicable when submitting tasks via the Bohrium CLI and is set in the job_group_id field in the JSON configuration file. 。

{
"job_group_id":0000
}

Delete:delete

Entry:

bohr job_group delete

Summary:

Usage:
bohr job_group delete [flags]

Flags:
-h, --help help for delete
-j, --job_group_id int job group id

Parameter Description:

ParameterAbbreviationDescriptionRequired
--job_group_id-jJob group id to be deletedYes

Example:

$ bohr job_group delete 123 
#Delete job groups with ID 123

Terminate:terminate

Entry:

bohr job_group terminate

Summary:

Usage:
bohr job_group terminate [flags]

Flags:
-h, --help help for terminate
-j, --job_group_id int job group id


Parameter Description:

ParameterAbbreviationDescriptionRequired
--job_id-jTerminated Job IDyes

Example:

$ bohr job_group terminate -j 1235 
# Terminate the task group with ID 1235 early