]> cat aescling's git repositories - mastodon.git/commit
Fix records not being indexed sometimes (#12024)
authorEugen Rochko <eugen@zeonfederated.com>
Mon, 30 Sep 2019 23:19:11 +0000 (01:19 +0200)
committerGitHub <noreply@github.com>
Mon, 30 Sep 2019 23:19:11 +0000 (01:19 +0200)
commit5c42f47617d311219d06e082e4daa41e671903c8
treec2be1daba626b6bbfd833cf9a55c5dc243e786d6
parent12c4ec0c83fc5d43a29b3333ab07510c87844166
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.
app/models/account.rb
app/models/account_stat.rb
app/models/application_record.rb
app/models/favourite.rb
app/models/status.rb
app/models/tag.rb
config/application.rb
config/initializers/chewy.rb
lib/chewy/strategy/custom_sidekiq.rb [new file with mode: 0644]
spec/rails_helper.rb