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:
Parameter | Abbreviation | Description | Required |
---|---|---|---|
--asce | -a | Sort in reverse order | No |
--end | -e | End date, format is yyyy-mm-dd (must be used together with --start) | No |
--job_group | -j | Search by job_group | No |
--number | -n | Number of job groups to display, default is 50 | No |
--projectId | -p | Search by project ID | No |
--quiet | -q | Only show job group ID | No |
--sortby | -o | Sort by createTime/id, default is id | No |
--start | -s | Start 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:
Parameter | Abbreviation | Description | Required |
---|---|---|---|
--job_group_id | - | Job Group ID to terminate | yes |
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:
Parameter | Abbreviation | Description | Required |
---|---|---|---|
--job_group_id | - | Job group id to be deleted | Yes |
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:
Parameter | Abbreviation | Description | Required |
---|---|---|---|
--job_group_id | -i | Job group ID to download | Yes |
--number | -n | Number of jobs to download (default is 50) | No |
--out_path | -o | Save 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:
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 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
}