bugGNU Parallel - build and execute command lines from standard input in parallel - Bugs: bug #45619, "--halt" erroneous error...

 
 

bug #45619: "--halt" erroneous error exit code

Submitted by:  Ryan <devbystarlight>
Submitted on:  Fri 24 Jul 2015 11:44:00 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: Ole Tange <tange>
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Wed 29 Jul 2015 07:09:38 PM UTC, comment #4:

Cool! Thanks :)

Ryan <devbystarlight>
Wed 29 Jul 2015 12:34:11 AM UTC, comment #3:

Fixed in: [26606a5].

Ole Tange <tange>
Project AdministratorIn charge of this item.
Wed 29 Jul 2015 12:10:43 AM UTC, comment #2:

Shorter example:

seq 10 | parallel --halt now,fail=1 true ; echo $?

Ole Tange <tange>
Project AdministratorIn charge of this item.
Mon 27 Jul 2015 01:37:12 PM UTC, comment #1:

I can confirm this malfunction of parallel.
Exit code is 101 even if all launched processes exit with code 0.

In my case this causes the text-recognition-script "OCRmyPDF.sh" to be unfunctional.

Falkenberg <falkenber9>
Fri 24 Jul 2015 11:44:00 PM UTC, original submission:

h4. Enviro Notes

Environment: OSX Yosemite
Parallel installed via homebrew

$ parallel --version
GNU parallel 20150622
Copyright (C) 2007,2008,2009,2010,2011,2012,2013,2014,2015 Ole Tange
and Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
GNU parallel comes with no warranty.

Web site: http://www.gnu.org/software/parallel

When using programs that use GNU Parallel to process data for publication
please cite as described in 'parallel --bibtex'.

~~~~

h4. Baseline example

Following works correctly:
{noformat}
$ parallel --progress echo "Job '{1}'" ::: "$(seq 10)" ; echo "Exit code: $?"

Computers / CPU cores / Max jobs to run
1:local / 8 / 8

Computer:jobs running/jobs completed/%of started jobs/Average seconds to complete
local:8/0/100%/0.0s Job 7
local:8/1/100%/0.0s Job 8
local:8/2/100%/0.0s Job 6
local:7/3/100%/0.0s Job 9
local:6/4/100%/0.0s Job 5
local:5/5/100%/0.0s Job 4
local:4/6/100%/0.0s Job 3
local:3/7/100%/0.0s Job 2
local:2/8/100%/0.0s Job 1
local:1/9/100%/0.0s Job 10
local:0/10/100%/0.0s
Exit code: 0
{noformat}

~~~~

h4. Example of problem

Following reports a failed job with exit code 101
{noformat}
$ parallel --progress --halt now,fail=1 echo "Job '{1}'" ::: "$(seq 10)" ; echo "Exit code: $?"

Computers / CPU cores / Max jobs to run
1:local / 8 / 8

Computer:jobs running/jobs completed/%of started jobs/Average seconds to complete
local:8/0/100%/0.0s Job 7
local:8/1/100%/0.0s Job 8
local:8/2/100%/0.0s Job 6
local:7/3/100%/0.0s Job 9
local:6/4/100%/0.0s Job 5
local:5/5/100%/0.0s Job 4
local:4/6/100%/0.0s Job 3
local:3/7/100%/0.0s Job 2
local:2/8/100%/0.0s Job 1
local:1/9/100%/0.0s Job 10
local:0/10/100%/0.0s
Exit code: 101
{noformat}

~~~~

h4. Expected results

My expectation was the exit code would be "0" in both cases.

Ryan <devbystarlight>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by tange (Posted a comment)
  • -unavailable- added by falkenber9 (Posted a comment)
  • -unavailable- added by devbystarlight (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 29 Jul 2015 12:34:11 AM UTCtangeStatusConfirmed=>Fixed
      Open/ClosedOpen=>Closed
    Wed 29 Jul 2015 12:10:43 AM UTCtangeStatusNone=>Confirmed
      Assigned toNone=>tange

    Back to the top


    Powered by Savane 3.1-cleanup1