2014-02-25 19:13:31 +00:00
|
|
|
import docopt
|
|
|
|
|
|
|
|
import teuthology.config
|
|
|
|
import teuthology.beanstalk
|
|
|
|
|
|
|
|
doc = """
|
2014-03-25 20:29:56 +00:00
|
|
|
usage: teuthology-queue -h
|
2014-03-25 20:38:34 +00:00
|
|
|
teuthology-queue [-d] -m MACHINE_TYPE
|
2014-04-29 16:26:39 +00:00
|
|
|
teuthology-queue [-r] -m MACHINE_TYPE
|
2014-03-25 20:38:34 +00:00
|
|
|
teuthology-queue -m MACHINE_TYPE -D PATTERN
|
2014-02-25 19:13:31 +00:00
|
|
|
|
|
|
|
List Jobs in queue:
|
2014-03-25 20:31:07 +00:00
|
|
|
If -d then jobs with PATTERN in the job name are deleted from the queue.
|
2014-02-25 19:13:31 +00:00
|
|
|
|
|
|
|
Arguments:
|
|
|
|
-m, --machine_type MACHINE_TYPE
|
|
|
|
Which machine type queue to work on.
|
|
|
|
|
|
|
|
optional arguments:
|
2014-03-25 20:38:34 +00:00
|
|
|
-h, --help Show this help message and exit
|
|
|
|
-D, --delete PATTERN Delete Jobs with PATTERN in their name
|
|
|
|
-d, --description Show job descriptions
|
2014-04-29 16:26:39 +00:00
|
|
|
-r, --runs Only show run names
|
2014-02-25 19:13:31 +00:00
|
|
|
|
|
|
|
|
|
|
|
""".format(archive_base=teuthology.config.config.archive_base)
|
|
|
|
|
|
|
|
|
|
|
|
def main():
|
|
|
|
args = docopt.docopt(doc)
|
|
|
|
teuthology.beanstalk.main(args)
|