bugGNU Parallel - Bugs: bug #48743, Parallel jobs should get a unique...

 
 

bug #48743: Parallel jobs should get a unique job slot number {%}

Submitter:  Jamshid Afshar <jamshid69>
Submitted:  Wed 10 Aug 2016 02:59:00 AM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  tange
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 11 Aug 2016 06:30:59 AM UTC, comment #1: 

Fixed in 20150622.

If the newest version does not work, file bugs for that.

Ole Tange <tange>
Group administrator
Wed 10 Aug 2016 02:59:00 AM UTC, original submission:  

This is a late bug submission based on this email thread:
https://lists.gnu.org/archive/html/parallel/2014-09/msg00002.html

Docs imply it should work as I expect, right? I might be misunderstanding and need to use "--semaphore".

https://www.gnu.org/software/parallel/man.html
There will never be 2 jobs running at the same time with the same job slot number.

But the jobs (A,x) and (A,y) start at the same time in the same job slot:

# parallel -j 2 'foo {1} {2} {%}' ::: A B C ::: x y
START:  on server 1 at 2016-08-10T02:53:35Z (A,x)
FINISH: on server 1 at 2016-08-10T02:53:45Z (A,x)
START:  on server 1 at 2016-08-10T02:53:35Z (A,y)
FINISH: on server 1 at 2016-08-10T02:53:45Z (A,y)
START:  on server 1 at 2016-08-10T02:53:45Z (B,x)
FINISH: on server 1 at 2016-08-10T02:53:55Z (B,x)
START:  on server 1 at 2016-08-10T02:53:45Z (B,y)
FINISH: on server 1 at 2016-08-10T02:53:55Z (B,y)
START:  on server 2 at 2016-08-10T02:53:55Z (C,x)
FINISH: on server 2 at 2016-08-10T02:54:05Z (C,x)
START:  on server 2 at 2016-08-10T02:53:55Z (C,y)
FINISH: on server 2 at 2016-08-10T02:54:05Z (C,y)

The foo bash function just outputs the "variables", job slot number, and sleeps for 10 seconds.

# foo() { echo "START:  on server $3 at $(date -u +'%Y-%m-%dT%H:%M:%SZ') ($1,$2)" ; sleep 10 ; echo "FINISH: on server $3 at $(date -u +'%Y-%m-%dT%H:%M:%SZ') ($1,$2)" ; }
# export -f

Sorry I am using an older version, but I'm having other problems with latest, and I don't think this has ever worked right.

# parallel --version
GNU parallel 20150522

Jamshid Afshar <jamshid69>

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by tange (Posted a comment)
  • -email is unavailable- added by jamshid69 (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-08-11 tange Assigned toNone tange
        Open/ClosedOpen Closed
    2016-08-11 tange StatusNone Fixed

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code