ceph/scripts/queue.py
Zack Cerza 03974bf583 Add --description flag
Default to not printing job descriptions. Add -d/--description flag to
control that behavior. Change --delete's short option to -D. Other small
output tweaks.

Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
2014-03-25 15:38:34 -05:00

30 lines
736 B
Python

import docopt
import teuthology.config
import teuthology.beanstalk
doc = """
usage: teuthology-queue -h
teuthology-queue [-d] -m MACHINE_TYPE
teuthology-queue -m MACHINE_TYPE -D PATTERN
List Jobs in queue:
If -d then jobs with PATTERN in the job name are deleted from the queue.
Arguments:
-m, --machine_type MACHINE_TYPE
Which machine type queue to work on.
optional arguments:
-h, --help Show this help message and exit
-D, --delete PATTERN Delete Jobs with PATTERN in their name
-d, --description Show job descriptions
""".format(archive_base=teuthology.config.config.archive_base)
def main():
args = docopt.docopt(doc)
teuthology.beanstalk.main(args)