Skip to content

Using RedisTenancyBoostrapper causes problems with queue worker #1229

Closed
@pr4xx

Description

@pr4xx

Bug description

When calling queue:restart, it will cause all future queue:work commands to exit after only one job, if the job was dispatched in tenant context.

Steps to reproduce

See this demo repository: https://github.com/pr4xx/tenancy-problem-demo

Expected behavior

queue:work does not stop itself

Laravel version

11.9

stancl/tenancy version

3.8

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions