-
Notifications
You must be signed in to change notification settings - Fork 296
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
scripts/queue: common teuthology-queue command for paddles and beanst…
…alk queue Signed-off-by: Aishwarya Mathuria <[email protected]>
- Loading branch information
Showing
10 changed files
with
253 additions
and
328 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import docopt | ||
|
||
import teuthology.config | ||
import teuthology.queue.beanstalk | ||
import teuthology.queue.paddles | ||
|
||
doc = """ | ||
usage: teuthology-queue -h | ||
teuthology-queue [-s|-d|-f] -m MACHINE_TYPE | ||
teuthology-queue [-r] -m MACHINE_TYPE | ||
teuthology-queue -m MACHINE_TYPE -D PATTERN | ||
teuthology-queue -p SECONDS [-m MACHINE_TYPE] | ||
List Jobs in queue. | ||
If -D is passed, then jobs with PATTERN in the job name are deleted from the | ||
queue. | ||
Arguments: | ||
-m, --machine_type MACHINE_TYPE [default: multi] | ||
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 | ||
-r, --runs Only show run names | ||
-f, --full Print the entire job config. Use with caution. | ||
-s, --status Prints the status of the queue | ||
-p, --pause SECONDS Pause queues for a number of seconds. A value of 0 | ||
will unpause. If -m is passed, pause that queue, | ||
otherwise pause all queues. | ||
""" | ||
|
||
|
||
def main(): | ||
args = docopt.docopt(doc) | ||
teuthology.queue.main(args) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.