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

fix: fix reminders not being sent #2505

Merged
merged 2 commits into from
Mar 9, 2019
Merged

fix: fix reminders not being sent #2505

merged 2 commits into from
Mar 9, 2019

Conversation

djaiss
Copy link
Member

@djaiss djaiss commented Mar 9, 2019

I think the problem that reminders are not being sent is because the job NotifyUserAboutReminder takes a ReminderOutbox object in parameter and triggers the different notifications to be sent by also passing the same ReminderOutbox object to the other jobs.

However NotifyUserAboutReminder also deletes the current ReminderOutbox object at the end of the function. Therefore once the other jobs want to process their queues, they can't find the ReminderOutbox object as it has been deleted by the parent job.

I suppose that we haven't seen this behaviour locally because queues are synchronous, whereas they are asynchronous in production.

@djaiss djaiss requested a review from asbiin March 9, 2019 04:26
Copy link
Member

@asbiin asbiin left a comment

Choose a reason for hiding this comment

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

Perfect!

@djaiss djaiss merged commit 65cfef5 into master Mar 9, 2019
@djaiss djaiss deleted the 2019-03-06-fix-reminders branch March 9, 2019 18:27
@Bounz
Copy link

Bounz commented Mar 29, 2019

Hi, @djaiss.
I updated to 2.12.1 (Cloudron installation) but reminders are still not being sent.
The only way I was able to get email was to manually change notification date in the database and then run php artisan send:reminders.

@github-actions
Copy link

This pull request has been automatically locked since there
has not been any recent activity after it was closed.
Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 22, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants