import { QueuePro } from '@taskforcesh/bullmq-pro';
const queue = new QueuePro('myQueue', { connection });
const groupId = 'my group';
const count = await queue.getGroupsJobsCount(1000); // 1000 groups in each iteration
const activeCount = await queue.getGroupActiveCount(groupId);
It is also possible to retrieve the jobs with pagination style semantics in a given group. For example:
const jobs = await queue.getGroupJobs(groupId, 0, 100);