Fix sidekiq jobs not triggering Elasticsearch index updates (#24046)
This commit is contained in:
parent
1ed12d5e2f
commit
f432db7b9f
3 changed files with 5 additions and 4 deletions
|
@ -3,8 +3,8 @@
|
|||
class Mastodon::SidekiqMiddleware
|
||||
BACKTRACE_LIMIT = 3
|
||||
|
||||
def call(*)
|
||||
yield
|
||||
def call(*, &block)
|
||||
Chewy.strategy(:mastodon, &block)
|
||||
rescue Mastodon::HostValidationError
|
||||
# Do not retry
|
||||
rescue => e
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue