Hey folks! I have a question about binners that so...
# mag
e
Hey folks! I have a question about binners that sometimes fail to produce bins on my own pipeline and since you are already using them, I was wondering if you have a solution for this. I have binning processes that sometimes fail to produce bins so the process exits with an error. I set errorStrategy = ‘ignore’ so the pipeline continues, but when I use
-resume
, Nextflow re-runs these failed processes every time, which invalidates all downstream cached processes. How can I make Nextflow cache these failed processes so they don’t re-execute on resume? I want the pipeline to “remember” that binning failed and not waste time/resources re-running them again. Have you tried something like this?
j
I'm not sure that is possible unfortunately 😞
e
Im about to modify the modules locally so they somehow output like a dummy output when they fail to produce bins so maybe that could work, but wanted to ask if you guys already have experimented with this.
j
I think it depends how you've coded your own pipeline. Are you doing grouping operations after binning? That then would make sense to invalidate the downstream cache rpcosses
I think in mag we don't do that so it's not an issue
(if you see what I mean)
e
Yes im grouping all the bins per sample into a channel for the next step. But arent you guys doing the same for seqkit?
So maybe I could avoid this cashing issue by not grouping my bins together?
j
Yes but I think not directly from the binning output, there are post-binning processes that then will be completed as 'finished', thus when Nextflow resumes it goes 'ok well we got past that bit' and continue happily
I may be wrong though
(working on #taxprofiler at the moment so wrong mindset 😅 )
😅 1
e
Ok I think I know what you mean. Ill try it out before modifying the modules
Thanks!
m
Yeah, since ignored processes produce no output, they should not affect what happens downstream. That sounds like an issue with your pipeline logic.