Optional
opts: QueueProOptionsOptional
opts: JobsProOptionsAdds an array of jobs to the queue. This method may be faster than adding one job at a time in a sequence.
The array of jobs to add to the queue. Each job is defined by 3 properties, 'name', 'data' and 'opts'. They follow the same signature as 'Queue.add'.
Get the group ids with jobs current jobs in them.
TODO: Support group id filtering.
Gets all the groups that are in a particular status.
GroupStatus so we can filter by status
start index, used for pagination.
end index, used for pagination.
an array of objects with the group id and status.
Get the given group status.
The group id to get the status for.
GroupStatus - The status of the group or null if the group does not exist.
Completely destroys the queue and all of its contents irreversibly. This method will the pause the queue and requires that there are no active jobs. It is possible to bypass this requirement, i.e. not having active jobs using the "force" option.
Note: This operation requires to iterate on all the jobs stored in the queue and can be slow for very large queues.
Optional
opts: { Obliterate options.
Optional
count?: numberOptional
force?: boolean
Adds a Job to the queue.