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.
The implementation of devise-async
enqueues the task in after_commit
hook
which is the right way to do it.
Merge request reports
Activity
mentioned in issue #15127 (closed)
@stanhu @rspeicher safe to merge?
@dzaporozhets Not sure, will leave to @stanhu.
mentioned in commit 3656b5db
mentioned in commit d46e47a5
mentioned in merge request !4212 (merged)
mentioned in commit 52846d4b
Milestone changed to %8.9
Reassigned to @stanhu
@stanhu No action for you, just "bookkeeping".
@stanhu Do we?
config/initializers/devise_async.rb
no longer exists inmaster
, can't find the commit that removed it though.@stanhu @rspeicher I removed it with the devise-two-factor / devise 4 / attr_encrypted MR
!4216 (merged), replaced it with the Devise-included ActiveJob adapter.