Pausing groups

BullMQ Pro supports pausing groups globally. A group is paused when no workers will pick up any jobs that belongs to the paused group. When you pause a group, the workers that are currently busy processing a job from that group, will continue working on that job until it completes (or failed), and then will just keep idling until the group has been resumed.

Pausing a group is performed by calling the pauseGroup method on a Queue instance:

await myQueue.pauseGroup('groupId');

Even if the groupId does not exist at that time, the groupId will be added in our paused list as a group could be ephemeral

pauseGroup will return false if the group is already paused.

Resuming a group is performed by calling the resumeGroup method on a Queue instance:

await myQueue.resumeGroup('groupId');

resumeGroup will return false if the group does not exist or when the group is already resumed.

Read more:

Last updated

Copyright (c) Taskforce.sh Inc.