discourse/app
Martin Brennan b3d3ad250b
FIX: Handle SMTPServerBusy for group smtp email (#13632)
Use the `sidekiq_retry_in` code from Jobs::UserEmail in group SMTP. Also we don't need to keep `seconds_to_delay` -- sidekiq uses the default delay calculation if you return 0 or nil from the block. See 3330df0ee3/lib/sidekiq/job_retry.rb (L216-L234) for sidekiq default retry delay logic.

I experimented with extracting this into a concern or a module, but `sidekiq_retry_in` is quite magic and it would not allow me to abstract away into a module that calls some method specificall in the child job class.

I would love to write tests for this, but it does not seem possible (not sure if its because of our test
setup) to write tests that test sidekiq's retry capability, and I am not sure if we should be anyway. Initial addition
to UserEmail did not test this functionality 
d224966a0e
2021-07-06 13:37:52 +10:00
..
assets UX: Remove background image after image has loaded (#13642) 2021-07-05 19:15:29 -04:00
controllers DEV: Add theme-color meta to bootstrap (#13615) 2021-07-02 16:43:10 +02:00
helpers FEATURE: Render emojis on GitHub labels when oneboxing an issue. (#13531) 2021-06-25 14:48:36 -03:00
jobs FIX: Handle SMTPServerBusy for group smtp email (#13632) 2021-07-06 13:37:52 +10:00
mailers FIX: Do not show In Reply To for group SMTP emails (#13541) 2021-06-28 13:19:17 +10:00
models FEATURE: Add last visit indication to topic view page. (#13471) 2021-07-05 14:17:31 +08:00
serializers FEATURE: Add last visit indication to topic view page. (#13471) 2021-07-05 14:17:31 +08:00
services FEATURE: Add last visit indication to topic view page. (#13471) 2021-07-05 14:17:31 +08:00
views FIX: Improve participant display in group SMTP emails (#13539) 2021-06-28 10:42:06 +10:00