Code Monkey home page Code Monkey logo

Comments (3)

Nukesor avatar Nukesor commented on June 5, 2024

Could you elaborate your use case? Why exactly do you want to be able to quickly create arbitrary groups?

Could you give me a scenario or an example of how you're using pueue and what exactly you want this feature for?

As to how such a feature would look like:

  • You're correct, there must be a feature flag, as this behavior is pretty unsafe.
    Groups exist to allow running multiple queues in parallel. The idea behind groups is to schedule various queues of commands that consume different parts of the system (I/O, Ram, CPU).
    So just creating new groups whenever a group doesn't exist will lead to problems if users have a typo in their group name while adding a task. Additional tasks would be executed on top of already running tasks, without the user knowing..

    So if this would be added, a warning would have to be added on top of the configuration flag.

  • Those groups would always be created with a parallel limit of 1. So you would just a new default queue.

from pueue.

Schweber avatar Schweber commented on June 5, 2024

My use case is that i want to "look after" my backups in different locations from time to time so i'll have to run certain commands in order for each location (prune, check, list etc.) but doing so in parallel speeds it up tremendously because the limiting factor is ping rather than bandwidth. So i have an alias to create a group for each location with parallel limit 1 and let them run.

As there might be a long time in between this action, i might remove the groups in the meantime (or not). So whether or not my backup command will succeed depends on the state of pueue (e.g. do the groups exist already or not). But i can handle this with a script, no problem.

Anyway, Thank you for making pueue!

from pueue.

Nukesor avatar Nukesor commented on June 5, 2024

To be honest, this indeed sounds like a pretty specific usecase and a script is probably a neat solution for this problem, especially since it sounds like you're already scripting most of the stuff anyway.

I will close this issue for now as "wont do", but if more people have the need for such a feature, it's always possible to reconsider :)

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.