Skip to content

Why does jobs need to be passed to queue? #695

@fo-fo

Description

@fo-fo

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?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions