Fixes issue #3276 - Software error when Elasticsearch is not configured and rake searchindex:rebuild
This commit is contained in:
parent
2ad41b639e
commit
045e3751a6
1 changed files with 8 additions and 0 deletions
|
@ -23,6 +23,14 @@ class Sequencer
|
|||
# since we are using each object only once
|
||||
# Inspired by: https://medium.com/swiftype-engineering/using-jmat-to-find-analyze-memory-in-jruby-1c4196c1ec72
|
||||
config.cache = false
|
||||
|
||||
# increase timeouts to avoid network issues.
|
||||
config.client_options = {
|
||||
request: {
|
||||
open_timeout: 20, # default is 10
|
||||
timeout: 120, # default is 60
|
||||
},
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue