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:
Parameter | Abbreviation | Description | Required |
---|---|---|---|
--job_name | -n | the name of job group | Yes |
--project_id | -p | the project id of job group | Yes |
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:
Parameter | Abbreviation | Description | Required |
---|---|---|---|
--job_group_id | -j | Job group id to be deleted | Yes |
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:
Parameter | Abbreviation | Description | Required |
---|---|---|---|
--job_id | -j | Terminated Job ID | yes |
Example:
$ bohr job_group terminate -j 1235
# Terminate the task group with ID 1235 early