Comments (6)
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.
Ping @allencho1222
Would a pueue group -j
help you with your scripting setup?
from pueue.
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.
Yes, I'm offering to add a -j/--json
option for the pueue group
subcommand, so it's easier to do scripting :)
from pueue.
Hi, @Nukesor
Thank you. I really appreciate it.
from pueue.
I'll track this in the newly created issue to avoid confusion :)
from pueue.
Related Issues (20)
- 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
- Make 'pueue add -g Group' add the Group if it doesn't exist HOT 3
- [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
- Compiling from Git repo fails on Windows HOT 2
- Able to remove queued tasks from a group or clean/reset a specific group HOT 3
- Support for task templates HOT 1
- [Bug] chrono-english breaks with latest chrono version HOT 3
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.