Skip to content

The done callback and the job object should be passed to the job handler #23

@MarlBurroW

Description

@MarlBurroW

Currently, only the job payload is passed to the handle() method of a job class, I think it could be better to inject the job object and the done() callback too in order to have the same abilities as the default kue API (cf queue.process() method).
You probably want to provide an higher level API in the job classes, but sometime you need to use job.progress() or job.log() inside the job handler, or use the done() callback to return job specific errors, or complete the job programmatically.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions