Can I create a workflow similar to a DAG (Directed Acyclic Graph) using flows? #2279
-
Hello. I would like to implement a machine learning workflow using bullmq. I want to design steps for data loading, preprocessing, and modeling using flows. I'm wondering if it's possible to have a structure where a specific step can look at the same children. For example: The issue is, after the Data Splitting step, I'm unsure if there is a way to branch into Data Processing 1 and Data Processing 2 steps separately. If you have any insights on how to achieve this, I would appreciate your help. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
If what you need to do is split data and then merge it, this tutorial shows how to do it for video transcoding https://blog.taskforce.sh/splitting-heavy-jobs-using-bullmq-flows/ |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
@manast are there any plans to support a flow like this? Maybe the Is there any want/need in BullMQ for DAG-style jobs? Would it be too much of a maintenance burden? |
Beta Was this translation helpful? Give feedback.
I am afraid that is not currently possible as that would require two parents (B and C) to share the same child (child A). Maybe a solution could be to move step B between C and D instead.