Skip to content
Discussion options

You must be logged in to vote

not sure if solved it but did you try to include the subscribe into the workflow closure?

workflow {
    my_workflow(input_file)
    File file = new File("out.txt")
    my_workflow.out[1].subscribe {
         file.write "$it\n"
    }
}

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@drpatelh
Comment options

@drpatelh
Comment options

Answer selected by tdudgeon
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants