Prioritized intra-groups
await myQueue.add(
'paint',
{ foo: 'bar' },
{
group: {
id: 'groupId',
priority: 10,
},
},
);Get Counts per Priority for Group
const counts = await queue.getCountsPerPriorityForGroup('groupId', [1, 0]);
/*
{
'1': 11,
'0': 10
}
*/Read more:
Last updated
Was this helpful?