in curator/actions/reindex.py [0:0]
def _get_reindex_args(self, source, dest):
# Always set wait_for_completion to False. Let 'wait_for_it' do its
# thing if wait_for_completion is set to True. Report the task_id
# either way.
reindex_args = {
'refresh': self.refresh,
'requests_per_second': self.requests_per_second,
'slices': self.slices,
'timeout': self.timeout,
'wait_for_active_shards': self.wait_for_active_shards,
'wait_for_completion': False,
}
for keyname in [
'dest',
'source',
'conflicts',
'max_docs',
'size',
'_source',
'script',
]:
if keyname in self.body:
reindex_args[keyname] = self.body[keyname]
# Mimic the _get_request_body(source, dest) behavior by casting these values
# here instead
reindex_args['dest']['index'] = dest
reindex_args['source']['index'] = source
return reindex_args