Getters
Last updated
Was this helpful?
Last updated
Was this helpful?
Was this helpful?
import { Queue } from 'bullmq';
const myQueue = new Queue('Paint');
const counts = await myQueue.getJobCounts('wait', 'completed', 'failed');
// Returns an object like this { wait: number, completed: number, failed: number }from bullmq import Queue
myQueue = Queue('Paint')
counts = await myQueue.getJobCounts('wait', 'completed', 'failed')
# Returns an object like this { wait: number, completed: number, failed: number }const completed = await myQueue.getJobs(['completed'], 0, 100, true);
// returns the oldest 100 jobscompleted = await myQueue.getJobs(['completed'], 0, 100, True)
# returns the oldest 100 jobs