Fix records not being indexed sometimes (#12024)
It's possible that after commit callbacks were not firing when exceptions occurred in the process. Also, the default Sidekiq strategy does not push indexing jobs immediately, which is not necessary and could be part of the issue too.
This commit is contained in:
parent
12c4ec0c83
commit
5c42f47617
10 changed files with 46 additions and 8 deletions
|
@ -5,6 +5,12 @@ class ApplicationRecord < ActiveRecord::Base
|
|||
|
||||
include Remotable
|
||||
|
||||
class << self
|
||||
def update_index(_type_name, *_args, &_block)
|
||||
super if Chewy.enabled?
|
||||
end
|
||||
end
|
||||
|
||||
def boolean_with_default(key, default_value)
|
||||
value = attributes[key]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue