Define Queue behaviour for each notification channel #45262
Unanswered
JamesHemery
asked this question in
Ideas
Replies: 1 comment 1 reply
-
I think of two different syntaxes:
public function viaConnections(): array
{
return [
database' => 'sync',
];
}
public function nonQueued(): array
{
return ['database'];
} The advantage of the |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Users of my application can receive notifications via mail, in-app or both, depending on their settings.
All my notifications implement ShouldQueue, as I am sending Mails via API. However, this does affect my in-app notification which use the database channel.
These notifications should be available immediately, but they only become visible after the queue handler has processed the job for the notification.
Is there any way to define the queue behaviour on a channel level? I found this discussion, where this was not adressed: #14785
Initially created by @lpeterke (laravel/ideas#1234)
Beta Was this translation helpful? Give feedback.
All reactions