-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Fix duplicated notifications on timeout #7519
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
base: master
Are you sure you want to change the base?
Conversation
PR Summary
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- The ActiveJob is currently set to no retry
return false; - Can you explain, why the retry is after 1 hour? Maybe the job runs about 1 hour before retry?
- In principle, other queue drivers such as Redis should also be supported? I'm not sure if other queue features like “ExclusiveJob” work with it, but I think updating a task will be difficult to realize with other queue drivers.
- I do like that we store the processed users, but a more lightweight solution would probably be nice here instead of serializing & save the whole object after each loop. Either cache or a lightweight DB table?
@luke- Yes, it is very strange, it is why I could not reproduce the bug long time, and I found only this one way(set
As I tested only with
I have implemented this only for queue drivers extended from database drivers
Hm, ok I will review again what we can do there, I thought it is not hard to update the queue record in db... |
@luke- I have modified the code to store already processed user IDs in a cache - ebda853. |
What kind of change does this PR introduce? (check at least one)
The PR fulfills these requirements:
Other information:
humhub/calendar#547