:async mailer not working
oliviermilla opened this issue · comments
Hello,
I had troubles having confirmation email sent from Devise so I simply removed the :async from my model and the Devise::Async.backend = :sidekiq from the config/initializers/devise.rb and it instantly started to work again.
Of course sidekiq and Redis were running when I tested all this.
I'm using
Ruby 2.0.0dev
Rails 3.2.13
Sidekiq 2.10.0
Devise 2.2.3
Devise-async 0.7.0
Anything I'm missing or info I could post to help out?
Same issue i found solution : #10
start sidekiq with mailer queue
Check to make sure you have configured sidekiq workers to work from the :mailers queue, as in this answer to a related issue:
@muichkine any progress?
I have the same issue with sidekiq.
Actually my sidekiq works up DelayedMailer-jobs just fine. But the devise_async-mails don't even show up in the sidekiq-console. I'm quite confused and don't know what to do...
@toadle - can you paste your config/sidekiq.yml ?
@jacobsimeon I don't have a sidekiq.yml - I only have a initializer that sets the options for sidekiq.
It looks like this: http://pastebin.com/1BkvgKph
@toadle, I was thinking you might need that. I know I was having issue getting devise async mailers working. The fix for me was to add a sidekiq.yml file that told sidekiq what queues to work.
# config/sidekiq.yml
:verbose: true
:concurrency: 25
:queues:
- [mailer, 5]
- [default, 5]
Sadly this does not help. Still, wenn I add devise-async the mails stop coming.
I have a namespace for sidekiq configured, since we do other stuff with redis, too.
But: Even if I remove the namespace and add your config, no mail get send.
I also can not see any workers being added to sidekiq.
Is there some way to debug this, to at least see if devise-async adds any workers?
I'm happy to further investigate if someone provides a broken test case or a sample app. Closing for now.