gnu parallel no dependency between jobs in each division -
assuming have following gnu parallel command:
parallel --resume-failed --joblog test.log --jobs 2 -m -k sh ::: 1.sh 2.sh 3.sh
the first cpu: 1.sh 2.sh
the second cpu:3.sh
right if 1.sh failed, code retry 1.sh. if 1.sh still failed, 2.ish won't executed well. wonder if there anyway run 2.sh first if 1.sh failed, , re-try 1.sh @ end again? thanks.
i have feeling not want -m
:
$ parallel --dryrun --resume-failed --joblog test.log --jobs 2 -m -k sh ::: 1.sh 2.sh 3.sh sh 1.sh 2.sh sh 3.sh
is want run? i.e. having 2.sh
argument 1.sh
.
i reckon want run instead:
$ parallel --joblog test.log --jobs 2 -k sh ::: 1.sh 2.sh 3.sh
if of these fails, resume failed by:
$ parallel --resume-failed --joblog test.log --jobs 2 -k sh ::: 1.sh 2.sh 3.sh
Comments
Post a Comment