From 67844e0ef371741a7b7af279f280bd135602eab8 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Wed, 26 Mar 2014 10:09:12 -0700 Subject: [PATCH] suite: allow priority to be specified when scheduling Signed-off-by: Sage Weil --- scripts/suite.py | 6 ++++++ teuthology/suite.py | 2 ++ 2 files changed, 8 insertions(+) diff --git a/scripts/suite.py b/scripts/suite.py index eb5503edefa0e..6a7336a03bca3 100644 --- a/scripts/suite.py +++ b/scripts/suite.py @@ -69,6 +69,12 @@ combination, and will override anything in the suite. type=int, help='number of times to run/queue each job' ) + parser.add_argument( + '-p', '--priority', + default=1000, + type=int, + help='queue priority (lower value is higher priority)' + ) parser.add_argument( '-l', '--limit', default=0, diff --git a/teuthology/suite.py b/teuthology/suite.py index 0ff0c50d37d9b..e1fd4cb7e8c42 100644 --- a/teuthology/suite.py +++ b/teuthology/suite.py @@ -28,6 +28,8 @@ def main(args): '--num', str(args.num), '--worker', args.worker, ] + if args.priority: + base_arg.extend(['--priority', str(args.priority)]) if args.verbose: base_arg.append('-v') if args.owner: -- 2.39.5