Skip to content

[2.x] Add getPausedQueues() to QueueFactory for illuminate/queue v13.11+ compatibility#4672

Open
forumaker wants to merge 1 commit into
flarum:mainfrom
forumaker:patch-1
Open

[2.x] Add getPausedQueues() to QueueFactory for illuminate/queue v13.11+ compatibility#4672
forumaker wants to merge 1 commit into
flarum:mainfrom
forumaker:patch-1

Conversation

@forumaker
Copy link
Copy Markdown

@forumaker forumaker commented May 23, 2026

illuminate/queue v13.11 added a call to getPausedQueues() in Worker.php, but Flarum's QueueFactory doesn't implement this method, causing the queue worker to crash with «Call to undefined method» and breaking all queued mail.

This adds a no-op implementation — returns empty array — consistent with the existing isPaused() pattern.

Changes proposed in this pull request:
Added getPausedQueues(): array method to QueueFactory with a no-op implementation (returns empty array).

Reviewers should focus on:
Whether returning an empty array is the correct behaviour, or if Flarum should implement actual queue pausing support in the future.

…mpatibility

illuminate/queue v13.11 added a call to getPausedQueues() in Worker.php, but Flarum's QueueFactory doesn't implement this method, causing the queue worker to crash with «Call to undefined method» and breaking all queued mail.

This adds a no-op implementation — returns empty array — consistent with the existing isPaused() pattern.
@forumaker forumaker requested a review from a team as a code owner May 23, 2026 14:35
@forumaker forumaker changed the title Add getPausedQueues() to QueueFactory for illuminate/queue v13.11+ compatibility [2.x] Add getPausedQueues() to QueueFactory for illuminate/queue v13.11+ compatibility May 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant