After updating the Redmine version, it now takes about 20 seconds to update a ticket.
Added by Arita Natsumi 8 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 (8)
RE: After updating the Redmine version, it now takes about 20 seconds to update a ticket.
-
Added by Guillermo ML 8 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 8 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 8 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 Ismael Jerde 7 months ago
Thanks for answering, you saved my day.
RE: After updating the Redmine version, it now takes about 20 seconds to update a ticket.
-
Added by Paul Takemura 4 months 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 4 months 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
RE: After updating the Redmine version, it now takes about 20 seconds to update a ticket.
-
Added by James H 4 months ago
how come mailer queue went from async to sync?
RE: After updating the Redmine version, it now takes about 20 seconds to update a ticket.
-
Added by Paul Takemura 4 months ago
I could be wrong, but it seems that some developers prefer async for speed of development in the development and test environments (they don't have to wait for email to be sent), but think that in the production environment, mail should be sent first, because of what they think is the potential for losing mail that has not yet been sent if the server goes down. I wish that Redmine had a toggle for to specify the behavior. I didn't any mention of this in the Change Log either.