From a4a4b1a855842b94512f14a96cbf4266d3e45589 Mon Sep 17 00:00:00 2001 From: Martin Fenner Date: Thu, 11 Jul 2019 13:30:38 +0200 Subject: [PATCH] change unit for timeout --- app/models/concerns/indexable.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/concerns/indexable.rb b/app/models/concerns/indexable.rb index a08a5caa3..039fcd82a 100644 --- a/app/models/concerns/indexable.rb +++ b/app/models/concerns/indexable.rb @@ -325,7 +325,7 @@ def start_aliases self.__elasticsearch__.create_index!(index: alternate_index_name) unless self.__elasticsearch__.index_exists?(index: alternate_index_name) # copy old index to first of the new indexes, delete the old index, and alias the old index - client.reindex(body: { source: { index: alias_name }, dest: { index: index_name } }, timeout: 300, wait_for_completion: false) + client.reindex(body: { source: { index: alias_name }, dest: { index: index_name } }, timeout: "10m", wait_for_completion: false) "Created indexes #{index_name} (active) and #{alternate_index_name}." "Started reindexing in #{index_name}."