Project

General

Profile

After updating the Redmine version, it now takes about 20 seconds to update a ticket.

Added by Arita Natsumi 4 months ago

Hello,
I have a problem.

After updating the Redmine version, it now takes about 20 seconds to update a ticket.
Looking at the logs, it looks like it is waiting for the email notification process to complete. Looking at the logs of previous versions, it appears that email notifications are handled asynchronously.
Is it a bug that the email notifications are being processed synchronously? Or is it possible to make it asynchronous by changing the settings?

——

  • Current Version
    Redmine 5.1.1.stable
    Ruby 3.0.6-p216
    Rails 6.1.7.6
    Mailer queue ActiveJob::QueueAdapters::InlineAdapter
    Mailer delivery smtp
  • Previous Version
    Redmine 5.0.5.stable
    Ruby 3.0.6-p216
    Rails 6.1.7.2
    Mailer queue ActiveJob::QueueAdapters::AsyncAdapter
    Mailer delivery smtp

Replies (7)

RE: After updating the Redmine version, it now takes about 20 seconds to update a ticket. - Added by Guillermo ML 4 months ago

Your Mailer queue have changed from AsyncAdapter to InlineAdapter, you must revert the change.

RE: After updating the Redmine version, it now takes about 20 seconds to update a ticket. - Added by Arita Natsumi 4 months ago

Guillermo, thanks for your comment.

Would you know how I can change this setting back? I don't remember changing it myself.

RE: After updating the Redmine version, it now takes about 20 seconds to update a ticket. - Added by Arita Natsumi 4 months ago

I fount Mailer queue setting and changed it back!
Thanks.

RE: After updating the Redmine version, it now takes about 20 seconds to update a ticket. - Added by Paul Takemura 9 days ago

Question: did you change mailer.rb? That's the only place I could find InlineAdapter. But even after changing the line to say AsyncAdapter, the Information screen says InlineAdapter.

~/stack/redmine/app/models$ diff mailer.rb mailer.rb-orig
649c649
<     ActionMailer::MailDeliveryJob.queue_adapter = ActiveJob::QueueAdapters::AsyncAdapter.new
---
>     ActionMailer::MailDeliveryJob.queue_adapter = ActiveJob::QueueAdapters::InlineAdapter.new

RE: After updating the Redmine version, it now takes about 20 seconds to update a ticket. - Added by Paul Takemura 9 days ago

There was another place I needed to change:

~/stack/redmine/config$ diff additional_environment.rb additional_environment.rb-orig 
1c1
< config.active_job.queue_adapter = :async
---
> config.active_job.queue_adapter = :inline

    (1-7/7)