These are chat archives for nextflow-io/nextflow

1st
Dec 2017
Shawn Rynearson
@srynobio
Dec 01 2017 19:39
what is the best method/technique to have a process wait until 1...n other process are done? Is their a way outside of using channels?
Paolo Di Tommaso
@pditommaso
Dec 01 2017 19:40
no
why a channel does not work?
Shawn Rynearson
@srynobio
Dec 01 2017 19:44
they do, I just have 6 independent process that run to completion, with no need to send data via a channel. However I have a clean up process that I would like to pause until everything is 100% completed.
Paolo Di Tommaso
@pditommaso
Dec 01 2017 19:46
maybe workflow.onComplete handler can work in your case
Shawn Rynearson
@srynobio
Dec 01 2017 19:53
Interesting. But it doesn't allow you to invoke a script or another process, it's to allow you to review the competition status of your .nf script, correct?
Paolo Di Tommaso
@pditommaso
Dec 01 2017 19:53
mainly, but you can still run an external script using some native groovy api eg
['bash','-c', 'some_command --this --that'].execute()
or
def process = ["echo","Hello World"].execute()  
process.waitFor()  
println process.exitValue()  
println process.in.text  
println process.err.text
Shawn Rynearson
@srynobio
Dec 01 2017 20:03
I just added some vars through channels. Thanks!
Paolo Di Tommaso
@pditommaso
Dec 01 2017 20:04
:+1:
Mike Smoot
@mes5k
Dec 01 2017 23:50
Hi @pditommaso just found a regression in 0.26.3: nextflow-io/nextflow#542