bug-parallel
[Top][All Lists]
Advanced

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

Re: GNU Parallel Bug Reports --halt doesn't work with --nonall


From: Ole Tange
Subject: Re: GNU Parallel Bug Reports --halt doesn't work with --nonall
Date: Tue, 6 Dec 2016 22:44:36 +0100

On Tue, Dec 6, 2016 at 2:38 PM, <address@hidden> wrote:

> Error example: Note there is no output
> Failing case:
> address@hidden:/srv/cucumber/its$ parallel --nonall -j0 -S 
> address@hidden,address@hidden --halt now,success=1 "sleep $(cat 
> /proc/sys/kernel/random/uuid | tr -d [:alpha:] | cut -c1)"

In this case you do not do an echo so no output is expected. Also -S
address@hidden,address@hidden will be treated as -S address@hidden
(only unique username/host strings are used).

> Passing case:
> address@hidden:/srv/cucumber/its$ parallel -j0 -S 
> address@hidden,address@hidden --halt now,success=1 "sleep $(cat 
> /proc/sys/kernel/random/uuid | tr -d [:alpha:] | cut -c1); echo {}" ::: 1 2
> 1
> parallel: This job succeeded:
> sleep 1; echo 1

This is also to be expected.

> Description:
> I execute two similar commands (which run for unknown time) on two machines. 
> As soon as this command finish on "faster" machine, I'd like to halt it on 
> second machine. I tried to reproduce this case with sleep for random time in 
> cases above. When I use --nonall halting doesn't work. Adding dummy echo with 
> arguments make --halt work, see passing case.

I am really happy you included the description. That tells me that
this is probably what you mean:

# Here you expected only 1 a
$ parallel --nonall -j0 -S address@hidden,localhost --halt
now,success=1 echo a
a
a

# This does what you expect
$ parallel -j0 -S address@hidden,localhost --halt now,success=1
echo a ::: 1 2
a 1
parallel: This job succeeded:
echo a 1

And yes that looks like a bug. I have registered it as
https://savannah.gnu.org/bugs/index.php?49783

> Hope that I help to make this awsome tool even bit better.

It just might :)


/Ole



reply via email to

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