[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
GNU Parallel Bug Reports Wrong slot number replacement when resuming
From: |
Lars-Dominik Braun |
Subject: |
GNU Parallel Bug Reports Wrong slot number replacement when resuming |
Date: |
Tue, 5 Apr 2016 14:31:06 +0200 |
User-agent: |
Mutt/1.5.24 (2015-08-30) |
Hi,
when resuming a job with --resume or --resume-failed the slot number
replacement {%} is off by the number of jobs previously run. According
to the manpage it should be in [1, N] with ā-j Nā. Example:
--- snip ---
$ seq 0 100 | ./parallel -j 4 --joblog log --ungroup 'echo {} {%} && sleep 5'
0 1
1 2
2 3
3 4
4 1
5 2
6 3
7 4
^C
$ seq 0 100 | ./parallel -j 4 --joblog log --resume --ungroup 'echo {} {%} &&
sleep 5'
4 5
5 6
6 7
7 8
8 5
9 6
10 7
11 8
^C
--- snap ---
Tested with GNU parallel 20160322.
Kind regards,
Lars
- GNU Parallel Bug Reports Wrong slot number replacement when resuming,
Lars-Dominik Braun <=