Skip to content

Queued Event Subscribers always in the default queue #28132

@jf-m

Description

@jf-m
  • Laravel Version: 5.7.28
  • PHP Version: 7.1.8
  • Database Driver & Version: MySql + Redis

Description:

The queued subscribers is always pushed into the default redis queue and not in the one defined in the subscribers itself (using $queue property).

I've tried both methods: using public $queue and using the Queueable trait + onQueue method.

Note that the subscribers does works and gets fired, just in the wrong redis queue.

Steps To Reproduce:

  1. Create a subscribers following the https://laravel.com/docs/5.8/events#event-subscribers
  2. Make the subscriber implements the ShouldQueue interface
  3. Add the public $queue = 'low'; property in your subscriber.
  4. Fire an event that your subscriber listens to.
  5. Witness that the subscribers is queued under default redis queue, while it should have been pushed under the low redis queue.

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