Skip to content

Jobs require a manual factory #7

@drauschenbach

Description

@drauschenbach

Normally jobs in an Express app require some sort of access to the application object, where locals hold references to db & redis adapters, and configuration.

The current klass_finder.js architecture seems to prevent me from writing a job handler that has access to the current application context.

Injecting my own klassFinder into a worker might be one way for me to control construction of the job class handlers, so that I can pass the app context.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions