Project management tools
The usage of all the available gb2 tools is shown.
In most cases, examples of how to use them can be obtained with the flag --usage.
gb2_project_summary
Show progress of each project. Each job is categorized as follows: - Done: Successfully finished jobs - Fail: Failure jobs by any reasons - Run: Running jobs - Wait: Not yet executed
Examples:
$ gb2_project_summary
$ gb2_project_summary -p myProject
usage: gb2_project_summary [-h] [-v] [--usage] [-u USER] [-g GROUP] [-l] [--date [YYYY-MM-DD]] [-p PROJECT [PROJECT ...]] [--noBar] [--showAll] [--scout]
[--output_json OUTPUT_JSON]
Named Arguments
- -v, --verbose
increase verbosity (up to -vv)
Default:
0- --usage
show detailed usage
- -u, --user
specify user name
- -g, --group
specify group
- -l, --long
long listing (-ll: extra long)
- --date
time format or strings (today, 1{(d(ay)|w(eek)|m(onth)|y(ear)}). Default: 1day
- -p, --project
specify project(s) name
- --noBar
disable status bar
Default:
False- --showAll
show masked status
Default:
False- --scout
Also show scout jobs
Default:
False- --output_json
specify json file name
gb2_project_analysis
Analyze users project - project’s statuses and the reason of fail.
Examples:
$ gb2_project_analysis
$ gb2_project_analysis -p project1
$ gb2_project_analysis -p project1 --twiki
usage: gb2_project_analysis [-h] [-v] [--usage] -p PROJECT [--twiki]
Named Arguments
- -v, --verbose
increase verbosity (up to -vv)
Default:
0- --usage
show detailed usage
- -p, --project
specify project name
- --twiki
print as twiki style
Default:
False
gb2_project_getlfns
Write the LFNs corresponding to jobs of a particular status (default Waiting) in a project to a text file. In the case of waiting jobs, this can be used to resubmit stuck jobs (after identifying the issue and fixing it at submission)
Usage: gb2_project_getlfns -p PROJECT_NAME
usage: gb2_project_getlfns [-h] [-v] [--usage] [--date [YYYY-MM-DD]] (-j [JOBID ...] | -p [PROJECT ...]) [-g GROUP] [-u USER] [--status STATUS] [-o OUTPUT_FILE]
Named Arguments
- -v, --verbose
increase verbosity (up to -vv)
Default:
0- --usage
show detailed usage
- --date
time format or strings (today, 1{(d(ay)|w(eek)|m(onth)|y(ear)}). Default: 1day
- -j, --jobid
specify job ID(s)
- -p, --project
specify project name(s)
- -g, --group
specify group
- -u, --user
specify user name
- --status
Checking, Completed, Deleted, Done, Failed, Killed, Matched, Running, Staging, Stalled, Scheduled, Waiting
- -o, --output_file
Output file to write the LFNs