bug-parallel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GNU Parallel Bug Reports Option to set -j1 when nested


From: Ole Tange
Subject: Re: GNU Parallel Bug Reports Option to set -j1 when nested
Date: Wed, 25 Sep 2019 20:30:59 +0200

On Sat, Aug 31, 2019 at 6:10 PM Hadrien Lacour
<address@hidden> wrote:
>
> I'm currently using parallel and while I'm very happy with it, I think it'd
> benefit from having a --nest or --allow-nesting - something along those lines 
> -
> to restrict parallel to one job when already running in a parallel instance.
> I currently use
>         $ parallel ${PARALLEL_PID+-j1}
> in my scripts, which works well, but isn't as consistent (and can't be put in
> the PARALLEL environement variable) as an option.

I honestly think your solution is so elegant that I would rather just
put that in the man page as an example of how to force parallel to not
parallelize if started from another instance.


/Ole



reply via email to

[Prev in Thread] Current Thread [Next in Thread]