diff options
author | P.S.V.R <pmq2001@gmail.com> | 2016-04-11 16:45:00 +0800 |
---|---|---|
committer | P.S.V.R <pmq2001@gmail.com> | 2016-04-11 16:45:00 +0800 |
commit | e4d9d4e55b67ab04e46ee3f72c5496f91687a205 (patch) | |
tree | 32f80024799fe4a8beeaa487faaaa048c2cdf78e /config | |
parent | 78192747d3fe8762ee711e6fc0701185818c7bca (diff) | |
download | gitlab-ce-e4d9d4e55b67ab04e46ee3f72c5496f91687a205.tar.gz |
fix #15127 ActiveJob::DeserializationError thrown
send_devise_notification pre-maturely enqueued the task when the user instance
has not yet been committed into the database, causing a record-not-found in the
other sidekiq process.
devise-async has already been taking care of asynchronous mail sending, we just
need to run it inside queue `mailers` instead of `mailer` to enable it.
Diffstat (limited to 'config')
-rw-r--r-- | config/initializers/devise_async.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/config/initializers/devise_async.rb b/config/initializers/devise_async.rb index 05a1852cdbd..fa602cbe554 100644 --- a/config/initializers/devise_async.rb +++ b/config/initializers/devise_async.rb @@ -1 +1,2 @@ Devise::Async.backend = :sidekiq +Devise::Async.queue = :mailers |