Returns a promise that resolves to a redis client. Normally used only by subclasses.
Adds a flow.
This call would be atomic, either it fails and no jobs will be added to the queues, or it succeeds and all jobs will be added.
an object with a tree-like structure where children jobs will be processed before their parents.
Optional
opts: FlowOptsoptions that will be applied to the flow object.
Adds multiple flows.
A flow is a tree-like structure of jobs that depend on each other. Whenever the children of a given parent are completed, the parent will be processed, being able to access the children's result data.
All Jobs can be in different queues, either children or parents, however this call would be atomic, either it fails and no jobs will be added to the queues, or it succeeds and all jobs will be added.
an array of objects with a tree-like structure where children jobs will be processed before their parents.
Generated using TypeDoc
This class allows to add jobs with dependencies between them in such a way that it is possible to build complex flows. Note: A flow is a tree-like structure of jobs that depend on each other. Whenever the children of a given parent are completed, the parent will be processed, being able to access the children's result data. All Jobs can be in different queues, either children or parents,