Skip to content

Commit

Permalink
scripts/queue: common teuthology-queue command for paddles and beanst…
Browse files Browse the repository at this point in the history
…alk queue

Signed-off-by: Aishwarya Mathuria <[email protected]>
  • Loading branch information
amathuria committed Oct 8, 2024
1 parent e9122c6 commit 74bd369
Show file tree
Hide file tree
Showing 10 changed files with 253 additions and 328 deletions.
2 changes: 1 addition & 1 deletion scripts/beanstalk_queue.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import docopt

import teuthology.config
import teuthology.beanstalk
import teuthology.queue.beanstalk

doc = """
usage: teuthology-beanstalk-queue -h
Expand Down
3 changes: 1 addition & 2 deletions scripts/paddles_queue.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import docopt

import teuthology.config
import teuthology.paddles_queue

import teuthology.queue.paddles_queue
doc = """
usage: teuthology-paddles-queue -h
teuthology-paddles-queue -s -m MACHINE_TYPE
Expand Down
37 changes: 37 additions & 0 deletions scripts/queue.py
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)
2 changes: 1 addition & 1 deletion teuthology/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ class TeuthologyConfig(YamlConfig):
'archive_upload_key': None,
'archive_upload_url': None,
'automated_scheduling': False,
'backend': 'paddles',
'backend': 'beanstalk',
'reserve_machines': 5,
'ceph_git_base_url': 'https://github.com/ceph/',
'ceph_git_url': None,
Expand Down
1 change: 1 addition & 0 deletions teuthology/kill.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

import teuthology.exporter

from teuthology.queue import beanstalk
from teuthology import report
from teuthology.lock import ops as lock_ops
from teuthology import beanstalk
Expand Down
218 changes: 0 additions & 218 deletions teuthology/paddles_queue.py

This file was deleted.

Loading

0 comments on commit 74bd369

Please sign in to comment.