跳到主要内容

Job Group Management Command:job_group

List all Job Group:list

Command Entry:

bohr job_group list

Summary:

Usage:
bohr job_group list [flags]

Aliases:
list, -ls

Flags:
-a, --asce list by ascending, default descending
--csv output with CSV format
-e, --end string end date. format is yyyy-mm-dd (must be used together with --start)
-h, --help help for list
-j, --job_group int Specify Job group ID to filter results
--json output with JSON format
--noheader does not print header information
-n, --number int number of results to be displayed (default 50)
-p, --projectId int project Id of Bohrium
-q, --quiet only show job group id
-o, --sortby string sort by id/createTime(default "id")
-s, --start string start date. format is yyyy-mm-dd (must be used together with --end)
--yaml output in YAML format

Parameter Description:

ParameterAbbreviationDescriptionRequired
--asce-aSort in reverse orderNo
--end-eEnd date, format is yyyy-mm-dd (must be used together with --start)No
--job_group-jSearch by job_groupNo
--number-nNumber of job groups to display, default is 50No
--projectId-pSearch by project IDNo
--quiet-qOnly show job group IDNo
--sortby-oSort by createTime/id, default is idNo
--start-sStart date, format is yyyy-mm-dd (must be used together with --end)No

Example:

bohr job_group list -n 10 --yaml
# Display the first 10 job groups in YAML format
bohr job_group list -s 2024-03-05 -e 2024-07-08
# Display job groups from March 5, 2024, to July 8

Terminate:terminate

Command Entry:

bohr job_group terminate

Summary:

Usage:
bohr job_group terminate <job_group_id>... [flags]

Flags:
-h, --help help for terminate
--job_group_id ints Job group ID(s) to terminate (can be used multiple times)

Parameter Description:

ParameterAbbreviationDescriptionRequired
--job_group_id-Job Group ID to terminateyes

Example:

bohr job_group terminate  123 456
# Terminate the job groups with IDs 123 and 456

Delete:delete

Command Entry:

bohr job_group delete

Summary:

Usage:
bohr job_group delete <job_group_id>... [flags]

Flags:
-h, --help help for delete
--job_group_id ints Job group ID(s) (can be used multiple times)

Parameter Description:

ParameterAbbreviationDescriptionRequired
--job_group_id-Job group id to be deletedYes

Example:

bohr job_group delete 123 345
#Delete job groups with ID 123 and 345

Download:download

Command Entry:

bohr job_group download

Summary:

Usage:
bohr job_group download [flags]

Aliases:
download, -d

Flags:
-h, --help help for download
-j, --job_group_id int job group id
-n, --number int number of results to be displayed (default 50)
-o, --out_path string specify the directory to save downloaded files (default "./")

Parameter description:

ParameterAbbreviationDescriptionRequired
--job_group_id-iJob group ID to downloadYes
--number-nNumber of jobs to download (default is 50)No
--out_path-oSave results to a specified local path, e.g., -o ./ means current directory (default is ./)No

Example:

bohr job_group download 123 654 
# Download files of job groups with IDs 123 and 654

Create:create

Command 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 under Project ID 123
Attention

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
}