From 045e3751a671ee861f49cb7b7a2b5f55fa983ca6 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Mon, 25 Jan 2021 08:34:01 +0100 Subject: [PATCH] Fixes issue #3276 - Software error when Elasticsearch is not configured and `rake searchindex:rebuild` --- lib/sequencer/unit/zendesk/client.rb | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/sequencer/unit/zendesk/client.rb b/lib/sequencer/unit/zendesk/client.rb index ae4054af2..8053e818c 100644 --- a/lib/sequencer/unit/zendesk/client.rb +++ b/lib/sequencer/unit/zendesk/client.rb @@ -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