When mailing is selected to create an app (or installed as a recipe) we should add the queue name to the queues entry in the sidekiq.yml file, something like:
By default, jobs queued by using .deliver_later on a mailer object are queued in the mailers queue and if the queue is not declared in the yml, jobs aren't processed.
That piece of extra configuration is very easy to miss when setting up mailing for an app and results in a difficult to debug error in which you only see jobs getting queued, but not processed, and no warning or error raised.
When mailing is selected to create an app (or installed as a recipe) we should add the queue name to the queues entry in the
sidekiq.yml
file, something like:By default, jobs queued by using
.deliver_later
on a mailer object are queued in themailers
queue and if the queue is not declared in theyml
, jobs aren't processed.That piece of extra configuration is very easy to miss when setting up mailing for an app and results in a difficult to debug error in which you only see jobs getting queued, but not processed, and no warning or error raised.