Questions tagged [devise-async]

Send Devise's emails in background. Supports Resque, Sidekiq, Delayed::Job and QueueClassic.

Devise Async provides an easy way to configure Devise to send its emails asynchronously using your preferred queuing backend.

Supported backends:

  • Resque
  • Sidekiq
  • Delayed::Job
  • QueueClassic
  • Torquebox

HomePage: https://github.com/mhfs/devise-async

12 questions
8
votes
2 answers

How to test Devise Async with Sidekiq?

Thanks in advance! Sidekiq is working just fine, but I cannot manage to test it with Devise Async, or should I say that I cannot test the latter? According to Sidekiq's documentation, when test mode is set to fake!, any job given to a worker is…
6
votes
2 answers

Sidekiq + Devise Mailer with multiple Subdomains

I have a problem with changing the ActionMailer::Base.default_url_options = {:host => host} during runtime in one of my projects. Setup: I have multiple subdomains which are using the same Rails-Application in the backend. I want to send my Devise…
Matthias
  • 4,355
  • 2
  • 25
  • 34
6
votes
1 answer

Active Job with Rails 4 and Devise

I am trying to set up Active Job with Rails 4 and Devise. I'm open to any tutorial, if there is any (couldn't find through my searching.) I know there is a Devise Async gem, but it does not cover Active Job in it. That said, I found this gem that is…
5
votes
0 answers

Sidekiq 5 is not working with AWS ELB and rails 5 api

Ruby version: 2.3.1 Sidekiq / Pro / Enterprise version(s): 5.0 Rails: 5.0.2 I've followed this tutorial so I could use sidekiq to send emails in my rails api app. The app is published on AWS ElasticBeanstalk with Puma. When an user registers, they…
2
votes
1 answer

devise-async and delayed_job not sending emails with delayed_job (rails 4)

I'm trying to send devise mails (default devise mailer) asynchronously with devise_async. However, the mailer does not send them; they only get saved in the delayed_jobs table. I followed the devise-async documentation step by…
1
vote
1 answer

How do you run a mailer only after a user has been redirected, in a controller?

For example, if the mailer send_signup_mail is heavy and takes a while to complete, how can I make sign_in_and_redirect execute first and send the mail in the background after the view has been rendered. In the code below this would just require…
Laser
  • 5,085
  • 4
  • 34
  • 48
1
vote
1 answer

Devise async with Mandrill mailer wrong number of arguments (1 for 2)

I'm using delayed_job to handle background jobs. I recently came across the devse_async gem to integrated delayed_job and devise. I am receiving a wrong number of arguments (1 for 2) error when delayed_job processes the email job in the queue. I…
Questifer
  • 1,113
  • 3
  • 18
  • 48
1
vote
2 answers

Devise async not working with sidekiq (sending emails with Devise Mailer)

I'm attempting to send multiple emails at once using Devise::Mailer. Using Devise Async, I would like to queue these emails rather than slow down the entire system by sending them altogether (which can delay the app by about 20 seconds). The main…
Kyle Bachan
  • 1,053
  • 2
  • 15
  • 33
1
vote
1 answer

Using devise-async to send out emails does not work (Rails/Sidekiq)

I have sidekiq (2.15.2), devise (3.2.0) and devise-async (0.9.0) in my Rails app. I am trying to get devise-async to take over sending out emails. but without luck. I have followed the instructions like this: Add :async to User model: #…
Cjoerg
  • 1,271
  • 3
  • 21
  • 63
0
votes
1 answer

devise-async not executing enqueue jobs with sidekiq

I was working with devise and devise-async and it was sending emails with sidekiq using devise-async. But recently it stops to work and I am not able to find the issue. Gems I'm using gem 'devise' gem…
0
votes
0 answers

Admin create user, User pick their Password Devise gem

How to do this scenerio: Using Device Gem Rails Admin will create a user, then User receive the email, User open the email and update the password and his personal info. then he login his dashboard
0
votes
1 answer

Devise notification email not received via devise_async gem and resque

I am using devise_async gem with resque for send email notification in background . What i did is - installing devise_async and resque gem. adding devise_async.rb in initializer with there lines - Devise::Async.enabled = true # |…