Code Monkey home page Code Monkey logo

Comments (6)

Nukesor avatar Nukesor commented on June 1, 2024

To be honest, I don't think that this should be handled via a new commandline option, as this is a very specific use case.

It sounds like you're heavily relying on scripting to add and remove large amounts of jobs that're then assigned to several groups.

Since I don't see this in a "normal" use case scenario and since this is easily scriptable, you should probably do it that way.

However, I'm open to exposing the list of groups via json, i.e. pueue group -j.
That way, you can iterate through all groups check for each group via pueue status -g $group -j status!=running whether there're any tasks and delete it, if they're not.

from pueue.

Nukesor avatar Nukesor commented on June 1, 2024

Ping @allencho1222

Would a pueue group -j help you with your scripting setup?

from pueue.

allencho1222 avatar allencho1222 commented on June 1, 2024

Hi, @Nukesor

I'm sorry, I couldn't understand what you mean.

There's no option -j for pueue group.

Does it mean that are you willing to support (make) the option like pueue group -j?

If such option is available, it would be nice.

I currently clean groups (assuming jobs are not running) to re-launch the script with the same group names:

pueue group | awk '{print $2}' | xargs -n 1 pueue group remove

Thank you.

from pueue.

Nukesor avatar Nukesor commented on June 1, 2024

Yes, I'm offering to add a -j/--json option for the pueue group subcommand, so it's easier to do scripting :)

from pueue.

allencho1222 avatar allencho1222 commented on June 1, 2024

Hi, @Nukesor

Thank you. I really appreciate it.

from pueue.

Nukesor avatar Nukesor commented on June 1, 2024

I'll track this in the newly created issue to avoid confusion :)

from pueue.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.