Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[5.3] Granular notification queue jobs #15681

Merged
merged 1 commit into from
Sep 29, 2016
Merged

Conversation

taylorotwell
Copy link
Member

This tweaks notification queued job to queue a job for each notifiable
/ channel combination. The reason for this is with the prior setup of
using a single job, if one channel fails to send and the job retries
all channels you could deliver duplicate/N number of notifications on a
given channel, possibly costing you money if the channel charges money
per notification.

This tweaks notification queued job to queue a job for each notifiable
/ channel combination. The reason for this is with the prior setup of
using a single job, if one channel fails to send and the job retries
all channels you could deliver duplicate/N number of notifications on a
given channel, possibly costing you money if the channel charges money
per notification.
@reinink
Copy link
Contributor

reinink commented Sep 29, 2016

This looks great! Thanks Taylor.

{
$this->channels = $channels;
Copy link
Contributor

@reinink reinink Sep 29, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor: Should you put this line after the other two, since it was the last item in the method signature?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I sort by length, signature order.

@taylorotwell taylorotwell merged commit 4a4e2d5 into 5.3 Sep 29, 2016
@GrahamCampbell GrahamCampbell deleted the fix/notification-queue branch September 29, 2016 20:54
@GrahamCampbell GrahamCampbell changed the title Granular notification queue jobs [5.3] Granular notification queue jobs Sep 29, 2016
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.

None yet

2 participants