On Wed, Jul 23, 2014 at 10:02 PM, Rob Sargent <firstname.lastname@example.org> wrote:
I would like to react to each job's completion. I need to accumulate the
data from each run and decide whether or not it's worth while to continue
with the remaining jobs. I don't think pipe is what I want, but maybe I'm
misunderstanding that feature. Given that parallel is writing joblog (which
I love,btw) I'm wondering if anything could be plugged in there?
Can you make a wrapper like this:
analyze output $1
if good; then
export -f doit
parallel --halt 1 doit ::: args
If not, please elaborate.