Replies: 1 comment 2 replies
-
On further inspection of the source code and documentation and trying to understand the philosophy of the development, I think my question/proposal doesn't even fit into the vision of the Flows feature, though it may be possible to hack together some solution. While reading, I kept seeing the heavy emphasis on parent-child hierarchy:
This leads me to believe the devs probably designed this to be used in such a way that there would be as many parent-child relations as necessary to unlock the data along the way instead of passing data from one child-step to the other. At first this was difficult to understand, but I'm guessing the idea is to have the child jobs act as collectors of data, which then the parent job can process if that makes sense |
Beta Was this translation helpful? Give feedback.
-
Example: To build a car assembly line, I will use a BullMQ flow, which would suppose the following code:
Suppose that the data from the chassis child-step returns
relevant metadata to the next step
. What is the ideal way to pass this data easily to the wheels child-step? I would hope it would be something like the following:What would also be interesting is the ability to get the value of for example the first child-step.
There can be other methods similar to
flowProducer.Steps.FirstChild.returnvalue
, that could resemble CSS's pseudo-classes in some sense, likefirst-child
,nth-child()
, as long as they are legal within the library framework.Beta Was this translation helpful? Give feedback.
All reactions