[queue tool] Please accept multiple queue IDs to act on

Bug #48070 reported by Matt Zimmerman
8
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
Medium
Julian Edwards

Bug Description

It would be much more convenient (and faster, to avoid connecting to the queue many times) to be able to act on multiple queue IDs in a batch, e.g.:

queue accept 123 456 789 190
queue fetch 123 789 190

etc.

Matt Zimmerman (mdz)
Changed in soyuz:
assignee: nobody → cprov
Celso Providelo (cprov)
Changed in soyuz:
status: Unconfirmed → Confirmed
Revision history for this message
Christian Reis (kiko) wrote :

Because Matt asked.

Changed in soyuz:
assignee: cprov → kiko
importance: Wishlist → High
Revision history for this message
Celso Providelo (cprov) wrote :

Currently queue supports another way to batch operations, a file containing one action per line, something like:

{{{
accept 123
fetch 456
reject 789
override 654 source universe/python
}}}

Use queue -f commands (-N for dry-run if you want to test stuff)
I
t's not as intuitive as your suggestion but I hope it helps ...

Revision history for this message
Colin Watson (cjwatson) wrote :

Yeah, I use 'queue -f /dev/fd/0' a lot. (Incidentally, supporting 'queue -f -' to read from standard input would be nice, and more standard.) It works, but is a bit clunky.

Revision history for this message
Celso Providelo (cprov) wrote :

Matt,

Looks like we have a new suggestion:
{{{
(09:46:23) Kamion: it would be quite nice if 'queue' without any non-option arguments would start a queue console, a bit like the python shell
(09:46:43) Kamion: then you could just type commands at it, without having to worry about what happens if the third-from-last command in your sequence fail
(09:46:46) Kamion: s
}}}

I like it and AFAICT the implementation would be much cleaner than the former (full of corner cases)

A Twisted based console (same used already in scripts/ftpmaster-tools/buildd-monitor.py) and the current queue.CommandRunner association would do a great job with much less code.

Revision history for this message
Matt Zimmerman (mdz) wrote : Re: [Bug 48070] Re: [queue tool] Please accept multiple queue IDs to act on

On Tue, Oct 03, 2006 at 12:56:22PM -0000, Celso Providelo wrote:
> Matt,
>
> Looks like we have a new suggestion:
> {{{
> (09:46:23) Kamion: it would be quite nice if 'queue' without any non-option arguments would start a queue console, a bit like the python shell
> (09:46:43) Kamion: then you could just type commands at it, without having to worry about what happens if the third-from-last command in your sequence fail
> (09:46:46) Kamion: s
> }}}
>
> I like it and AFAICT the implementation would be much cleaner than the
> former (full of corner cases)

What corner cases? It seems incredibly simple to me; hundreds of other
programs work this way and it makes intuitive sense.

> A Twisted based console (same used already in scripts/ftpmaster-tools
> /buildd-monitor.py) and the current queue.CommandRunner association
> would do a great job with much less code.

Why is any more code required than a for loop?

--
 - mdz

Revision history for this message
Colin Watson (cjwatson) wrote :

FWIW, my suggestion was intended as a separate wishlist request, not as an alternative to Matt's suggestion.

Revision history for this message
Celso Providelo (cprov) wrote :

Matt,

It's not simple to deal with heterogeneous arguments anywhere, but it doesn't mean it is impossible. I was just looking for something better than just hammering the current code to suport an additional feature which collides with the current code model.
Nevermind, will implement it.

Revision history for this message
Christian Reis (kiko) wrote :

On Tue, Oct 03, 2006 at 08:19:29PM -0000, Celso Providelo wrote:
> Nevermind, will implement it.

Hey -- this bug is assigned to me!

Revision history for this message
Celso Providelo (cprov) wrote :

oops, sorry. All yours.

Revision history for this message
Celso Providelo (cprov) wrote :

Kiko,

Any progress on this task ?

Christian Reis (kiko)
Changed in soyuz:
assignee: kiko → nobody
Joey Stanford (joey)
Changed in soyuz:
assignee: nobody → julian-edwards
Revision history for this message
Christian Reis (kiko) wrote :

Optional for 1.1.7 to accomodate commercial component work.

Changed in soyuz:
importance: High → Medium
Revision history for this message
Celso Providelo (cprov) wrote :

1.1.8 is more appropriate

Changed in soyuz:
status: Confirmed → In Progress
Revision history for this message
Julian Edwards (julian-edwards) wrote :

As discussed with pitti, I will change the way the command line works for using "override".

Instead of:
    queue override <filter> [override_stanza*]

    Where override_stanza is one of:
    source [<component>]/[<section>]
    binary [<component>]/[<section>]/[<priority>]

I will change this so that there are command line options instead:
-c or --component
-x or --section
-p or --priority
and change the order of the <filter> and <source/binary> stanza.

This does two things:
1. Makes it consistent with change-override.py
2. Makes it possible to process multiple overrides as per the bug requirement.

example:
queue override -c universe source 5 10 667

Revision history for this message
Julian Edwards (julian-edwards) wrote :

Fixed in RF 4657.

When this is released, please take note of the new syntax for overriding.

Changed in soyuz:
status: In Progress → Fix Committed
Changed in soyuz:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.