Skip to content
Snippets Groups Projects
Commit c7cc6c6c authored by Sébastien DA ROCHA's avatar Sébastien DA ROCHA
Browse files

allow sample generation if no source_url specified

(reindex on same host)
parent 09725259
No related branches found
No related tags found
2 merge requests!111.2.0,!10Fix/9493 sorting
Pipeline #9049 passed
...@@ -30,7 +30,10 @@ def callback(channel, method, properties, body): ...@@ -30,7 +30,10 @@ def callback(channel, method, properties, body):
#data = res.json() #data = res.json()
# get sample records from the ingest index # get sample records from the ingest index
source_es = Elasticsearch([cfg['reindexer']['source_url']], timeout=60) if 'source_url' in cfg['reindexer'].keys():
source_es = Elasticsearch([cfg['reindexer']['source_url']], timeout=60)
else:
source_es = Elasticsearch([cfg['reindexer']['destination_url']], timeout=60)
the_query = dict() the_query = dict()
the_query['size'] = sample_size the_query['size'] = sample_size
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment