简体   繁体   English

如何设置 Rails ActionMailer 的优先级

[英]How to set priority of Rails ActionMailer

How to set priority of Rails ActionMailer?如何设置 Rails ActionMailer 的优先级?

UserMailer.test.deliver_later

I use DelayedJob to queue_adapter.我使用 DelayedJob 到 queue_adapter。

config.active_job.queue_adapter = :delayed_job

Aren't all mails sent on the "mailers" queue?不是所有邮件都在“邮件发送者”队列中发送吗? If so, you can simply tell DJ the priority for said queue:如果是这样,您可以简单地告诉 DJ 所述队列的优先级:

(bundle exec) sidekiq ... -q mailers,2 ...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM