Function: group()
ts
function group(
queueName,
jobs,
connection,
prefix?
): Promise<ClosableWorkflow<JobNode>>;Defined in: glide-mq/src/workflows.ts:104
Group: execute jobs in parallel. All jobs run concurrently. A synthetic parent job (name: 'group') waits for all children. When complete, the parent's processor receives all children's results via getChildrenValues().
Returns the JobNode tree. The root is the group parent. Pass { client } on the connection to keep returned jobs usable.
Parameters
| Parameter | Type |
|---|---|
queueName | string |
jobs | WorkflowJobDef[] |
connection | WorkflowConnection |
prefix? | string |
Returns
Promise<ClosableWorkflow<JobNode>>