Skip to content

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

ParameterType
queueNamestring
groupJobsWorkflowJobDef[]
callbackWorkflowJobDef
connectionConnectionOptions
prefix?string

Returns

Promise<JobNode>

Released under the Apache-2.0 License.