Optional
opts: QueueProOptionsOptional
opts: JobsProOptionsCleans all the jobs that are part of a group.
Cleans all the groups in this queue
Gets the count of jobs inside a given group id.
Get the group ids with jobs current jobs in them.
TODO: Support group id filtering.
Get the the number of groups with jobs in them.
Gets the count of all the jobs belonging to any group.
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: { count?: number; force?: boolean }Obliterate options.
Adds a Job to the queue.