How to execute several processes sequentially, with channels in DSL2? #3415
-
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Adding
|
Beta Was this translation helpful? Give feedback.
-
Sequential execution is not possible as of version 22.11.0-edge. However upcoming version of nextflow will introduce a new
it will print
|
Beta Was this translation helpful? Give feedback.
Adding
maxForks 1
as a process directive will make your tasks run one by one, with no implicit parallelization. If you run the code below, you'll probably see 3 tasks concluding simultaneosly, then 6, 9 and 10. If you setmaxForks 1
(now it'smaxForks 3
), you'll see 1, 2, 3, 4, 5, 6, 7, 8, 9 and 10 because it is run sequentially.