Skip to content

How to combine middleware with batches #90

@iamtheschmitzer

Description

@iamtheschmitzer

I have middleware to set custom attributes when pushing a job, and then use them in the worker.

When a batch callback is triggered, the worker middleware is invoked, but it doesn't look like the client middleware is (custom attributes are missing). In this case, the job is triggered by the batch, not by client code.

Is this a bug/limitation, or am I just missing how to setup the middleware for batch callbacks, or is there something to do when creating the batch?

Thanks

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