The documentation has the following blurb:
new queue requires only the "queue" variable to be set. You can also pass the jobs hash to it.
What happens if I don't pass jobs? Why would I pass it if it's optional?
I was looking at the code (queue.ts), and it looked like the job's plugins would not run if I don't pass jobs to the queue (as const job = this.jobs[func]; would be undefined), is this intentional?
The documentation has the following blurb:
What happens if I don't pass
jobs? Why would I pass it if it's optional?I was looking at the code (
queue.ts), and it looked like the job's plugins would not run if I don't passjobsto the queue (asconst job = this.jobs[func];would be undefined), is this intentional?