|
@ -13,15 +13,14 @@ Chewy.settings = { |
|
|
journal: false, |
|
|
journal: false, |
|
|
user: user, |
|
|
user: user, |
|
|
password: password, |
|
|
password: password, |
|
|
sidekiq: { queue: 'pull' }, |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
# We use our own async strategy even outside the request-response |
|
|
# We use our own async strategy even outside the request-response |
|
|
# cycle, which takes care of checking if Elasticsearch is enabled |
|
|
# cycle, which takes care of checking if Elasticsearch is enabled |
|
|
# or not. However, mind that for the Rails console, the :urgent |
|
|
# or not. However, mind that for the Rails console, the :urgent |
|
|
# strategy is set automatically with no way to override it. |
|
|
# strategy is set automatically with no way to override it. |
|
|
Chewy.root_strategy = :custom_sidekiq |
|
|
|
|
|
Chewy.request_strategy = :custom_sidekiq |
|
|
|
|
|
|
|
|
Chewy.root_strategy = :mastodon |
|
|
|
|
|
Chewy.request_strategy = :mastodon |
|
|
Chewy.use_after_commit_callbacks = false |
|
|
Chewy.use_after_commit_callbacks = false |
|
|
|
|
|
|
|
|
module Chewy |
|
|
module Chewy |
|
|