-
-
Notifications
You must be signed in to change notification settings - Fork 286
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
Stop the dispatching of new messages when a SIGTERM signal has been received #750
Stop the dispatching of new messages when a SIGTERM signal has been received #750
Conversation
The I have looked into the But the correct Or just use the |
@hoffi I don't know why it's only happening now 🤷 |
Head branch was pushed to by a user without write access
…ks the message deduplication id
82c3e6a
to
b1f81fa
Compare
@phstc i have added the |
@hoffi That's awesome! Thank you
Unfortunately, it's failing for Rails 4. Is there any alternative we could use? Maybe https://github.com/travisjeffery/timecop? |
Yes, i have seen now it is only available since rails 5. However i just realized that it might be problematic to include the enqueued_at timestamp in the deduplication id? isn‘t it the same as with #457? |
@hoffi hm for standard works, we use only the body shoryuken/lib/shoryuken/queue.rb Line 133 in f02d28b
It's probably OK to remove It makes me a bit uncomfortable to change something like that after so long (especially given that it was working before), but rationally thinking makes it feel safe. I'm up for either change: Timecop or removing If you prefer the |
Yes however it was changed in rails 6 that the
I will try to see if i can test it |
@hoffi if that's the case, let's remove it then. It feels way safer given that ^ the deduplication was added prior to Rails 6. Thanks for thoroughly reviewing this. |
@phstc i have removed the timestamp. Can sou take a look at it? |
@hoffi looks great! Awesome work. Thank you |
Nice! Thanks :) |
Fixes #749