News for hackers. Stuff that matters.
Re:Sequential and parallel execution of long-running shell c... by elif on Thursday March 21, 2024 @07:55AM (#39777416)
Actually pretty sweet. `ps | grep` can be tricky to navigate sometimes. I know I've certainly grabbed the wrong process a few times.

I'm not exactly sure what advantage this has over managing `screen` sessions tho. Maybe it's cleaner from a process tree perspective?

Re:Sequential and parallel execution of long-running shell c... by cl3misch on Thursday March 21, 2024 @08:46AM (#39777857)
I was about to write that this has a different use case, because managing screen/tmux sessions is very manual. However the repo iself states

> Pueue is not designed to be a programmable (scriptable) task scheduler/executor. The focus of pueue lies on human interaction.

So I also don't really see its usecase and probably would opt for tmux instead. If you had many workers to run, but still do it manually, you would use pueue? I would be interested in such a scenario!

Re:Sequential and parallel execution of long-running shell c... by wang_li on Thursday March 21, 2024 @12:28PM (#39780755)
>The focus of pueue lies on human interaction.

How is it better than me having another window open and running my long running command there?

Re:Sequential and parallel execution of long-running shell c... by Nukesor on Monday March 25, 2024 @07:37PM (#39822535)
Well, if you're planning on running 10 commands sequentially that might take a few hours each, you would have to keep those windows open for quite a while.

See https://github.com/Nukesor/pueue/wiki/FAQ#what-can-i-use-it-...

Re:Sequential and parallel execution of long-running shell c... by dspillett on Thursday March 21, 2024 @09:56AM (#39778551)
The concurrency controls are not present using the tmux method. Though if I am running enough tasks for this to be an issue then something odd is happening.

The queue being persisted and surviving crashes could be useful, and isn't the case with tmux unless you manually script it up. Though it could be painful if the crash leaves things remaining tasks depend upon in an odd state…

The task tree could be useful: scheduling tasks to start once other tasks are completed.

Re:Sequential and parallel execution of long-running shell c... by kjkjadksj on Sunday March 24, 2024 @12:30PM (#39808203)
You can do this in pure bash I believe. E.g. when you launch a command you can capture its pid then wait for that to exit as you expect before running further jobs.
Re:Sequential and parallel execution of long-running shell c... by Nukesor on Thursday March 21, 2024 @11:22AM (#39779676)
This question has been asked quite a lot, so I wrote a FAQ ;D :

https://github.com/Nukesor/pueue/wiki/FAQ#why-should-i-use-i...