Skip to content
Discussion options

You must be logged in to vote

This is a common stumbling block when learning to code in a "reactive" or "functional" way. Basically, you should never try to "check" the value of a channel, instead you should use channel operators to process channel outputs as they are emitted.

In this case, I would use the branch operator to pipe outputs from CHECKLABFILE into a "valid" channel or "faulty" channel depending on the output value. Then you can pipe the valid channel into the next workflow and the faulty channel into the void (or whatever).

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Grelot
Comment options

Answer selected by bentsherman
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants