如何设置Rails ActionMailer的优先级

3
如何设置Rails ActionMailer的优先级?
UserMailer.test.deliver_later

我使用DelayedJob作为队列适配器。

config.active_job.queue_adapter = :delayed_job
2个回答

1

0

所有邮件不都是在“mailers”队列中发送的吗?如果是这样,您可以简单地告诉DJ该队列的优先级:

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


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接