Skip to content

Is Venture compatible with Laravel's job middleware?#88

Description

@tristanjahier

Hello! 馃憢馃徎

I am dispatching a lot of jobs inside a workflow. To avoid race conditions and overload, I want to prevent overlap of jobs that work on the same resource (let's say an external database). I have tried to set the WithoutOverlapping middleware on the job (see Laravel docs), but it does not seem to work as intended.

I have put a debug log inside the middleware() method of the job, and it never gets called when dispatched from inside the workflow. However, if I dispatch manually the job on its own, the method is called (the debug log shows up).

It seems to show that job middleware is ignored when used in a workflow.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions