Skip to content

Function: chord() ​

ts
function chord(
   queueName,
   groupJobs,
   callback,
   connection,
   prefix?
): Promise<ClosableWorkflow<JobNode>>;

Defined in: glide-mq/src/workflows.ts:138

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. Pass { client } on the connection to keep returned jobs usable.

Parameters ​

ParameterType
queueNamestring
groupJobsWorkflowJobDef[]
callbackWorkflowJobDef
connectionWorkflowConnection
prefix?string

Returns ​

Promise<ClosableWorkflow<JobNode>>

Released under the Apache-2.0 License.