Function: chord()
ts
function chord(
queueName,
groupJobs,
callback,
connection,
prefix?): Promise<JobNode>;Defined in: glide-mq/src/workflows.ts:115
Chord: run a group of jobs in parallel, then execute a callback job with the results. The callback is the parent, the group members are children.
Returns the JobNode tree. The root is the callback job.
Parameters
| Parameter | Type |
|---|---|
queueName | string |
groupJobs | WorkflowJobDef[] |
callback | WorkflowJobDef |
connection | ConnectionOptions |
prefix? | string |
Returns
Promise<JobNode>