Skip to content

Fixed #18907 - Change default queue, make all notifications queable. - #19126

Open
uberbrady wants to merge 4 commits into
grokability:developfrom
uberbrady:change_default_queue
Open

Fixed #18907 - Change default queue, make all notifications queable.#19126
uberbrady wants to merge 4 commits into
grokability:developfrom
uberbrady:change_default_queue

Conversation

@uberbrady

Copy link
Copy Markdown
Member

Fixes #18907

Changes the default driver to 'background' which runs after the page has rendered. Doesn't require any DB tables, but if someothing in the message-sending system fails, the remaining messages will probably not get sent.

This is written without any tests to handle anything or even any physical testing. Just trying to show the way I would be going (and possibly, how we've gone) if we adopt this approach.

@codacy-production

codacy-production Bot commented Jun 1, 2026

Copy link
Copy Markdown

Not up to standards ⛔

🔴 Issues 4 medium

Alerts:
⚠ 4 issues (≤ 0 issues of at least minor severity)

Results:
4 new issues

Category Results
UnusedCode 1 medium
Complexity 3 medium

View in Codacy

🟢 Metrics 362 complexity

Metric Results
Complexity 362

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@uberbrady

Copy link
Copy Markdown
Member Author

@bzeus can you test out this branch and see if notifications work correctly? Dankeshein!

@snipe

snipe commented Jul 16, 2026

Copy link
Copy Markdown
Member

@uberbrady Can you take a little time and test this please? I'd love it if we can ship this in the next release.

@snipe

snipe commented Jul 16, 2026

Copy link
Copy Markdown
Member

Also looks like we have some mail-related failing tests here

@uberbrady

Copy link
Copy Markdown
Member Author

Yeah, so apparently moving some of those emails to the Queue is actually breaking some stuff - we had one Mailer that was using #[AllowDynamicProperties] so that we didn't have to go and list a bunch of dumb, boring properties - which would normally be fine.

But to Queue the emails so that the "background" runner can actually run them, it needs to serialize and deserialize the Mailer. And that, apparently, only works right if you explicitly list your properties.

I've got it so that the tests pass, but there are still plenty of warnings about unsent email in my laravel.log file, so this is not quite ready for prime time, just yet. And I shouldn't have had to disable email sending, so I marked those with 'FIXME's so that I can handle them at the same time that I handle everything else.

So I'll keep this in draft until that is done.

@uberbrady
uberbrady marked this pull request as ready for review July 21, 2026 20:16
@uberbrady
uberbrady requested a review from snipe as a code owner July 21, 2026 20:16
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.

3 participants