Comments (3)
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.
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.
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)
- Write generated completion script to stdout if directory is not provided as an argument HOT 3
- [Bug] Fails to build on FreeBSD in the libproc crate
- Support Display the status of the waiting task only while waiting. HOT 14
- add task reading from stdin via pipe HOT 5
- Enqueue task with guaranteed execution after delay HOT 2
- Allow to disable parallel taks limit HOT 3
- [Bug] The coloum width of the `pueue status` output table is fixed to 1 HOT 2
- Edit task environment variables HOT 9
- [Bug] pueue log for a specific group fails with an obscure error HOT 4
- [Bug] Limiting status output falsly claims "Task list is empty" HOT 5
- Allow filtering task logs by groups via a `-g` flag HOT 1
- [Bug] HOT 6
- queue task killed HOT 2
- feat: use S3 to save std output and error HOT 1
- [Bug] Cannot specify stashed tasks as dependencies for the new tasks HOT 3
- [Bug] Pre built binary doesn't work on macOS HOT 1
- Install fails without `--locked` HOT 2
- Filter by `command %=` HOT 1
- OK to rename `Miscellaenous`? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pueue.