2014-02-25 19:13:31 +00:00
|
|
|
import docopt
|
|
|
|
|
|
|
|
import teuthology.config
|
|
|
|
import teuthology.beanstalk
|
|
|
|
|
|
|
|
doc = """
|
|
|
|
usage: teuthology-queue [-h] -m MACHINE_TYPE
|
|
|
|
teuthology-queue [-h] -m MACHINE_TYPE -d JOB
|
|
|
|
|
|
|
|
List Jobs in queue:
|
2014-02-26 03:57:41 +00:00
|
|
|
If -d then jobs with JOB 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:
|
|
|
|
-h, --help show this help message and exit
|
|
|
|
|
2014-03-25 20:28:56 +00:00
|
|
|
-d, --delete JOB Delete Jobs with JOB in their name.
|
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)
|