aaronriekenberg / rust-parallel

Fast command line app in rust/tokio to run commands in parallel. Similar interface to GNU parallel or xargs plus useful features. Listed in Awesome Rust utilities.
MIT License
139 stars 7 forks source link

support --ungroup option like GNU-parallel #21

Open zakstucke opened 3 months ago

zakstucke commented 3 months ago

Love the look of the library.

Looking to replace GNU-parallel with this, but seems like --ungroup isn't an option. In my case, I do want output interleaving as I'm running "infinite" processes, with the current --group behaviour I'll never see those logs come out.

Thanks!

P.s I've just seen in 1.16.0 the behaviour of --exit-on-error was changed to wait for in-process tasks to finish before exiting. Given my intended use case I'd also need the previous behaviour. Maybe 3 separate options needed? I.e.

aaronriekenberg commented 3 months ago

@zakstucke you are right the --ungroup option does not exist now. Outputs only happen after each process exits which is similar to the --group behavior in GNU Parallel.

Could you please give an example command line where you want to use --ungroup? Would like to understand more on use case for this.

On the --exit-on-error behavior - you are correct there was a change in version 1.16.0:

Could you please write a second issue for more exit-on-error options?

Thanks!

zakstucke commented 3 months ago

@aaronriekenberg my specific use case: