Prioritized intra-groups

BullMQ Pro supports priorities per group. A job is prioritized in a group when group and priority options are provided together.

await myQueue.add(
  { foo: 'bar' },
    group: {
      id: 'groupId',
      priority: 10,

The priorities go from 0 to 2097151, where a higher number means lower priority (as in Unix processes). Thus, jobs without any explicit priority will have the highest priority.

Read more:

Last updated

Copyright (c) Inc.