added timeout to import and sync es

die-sync-es-backport
aldacron 6 years ago
parent 6ad43bbcaa
commit f27cf17478

@ -22,7 +22,7 @@ bar = progressbar.ProgressBar(
' (', progressbar.ETA(), ') ',
])
es = Elasticsearch()
es = Elasticsearch(timeout=30)
ic = IndicesClient(es)
# turn into thing that elasticsearch indexes. We flatten in

@ -51,7 +51,7 @@ NT_DB = 'nyaav2'
with open(SAVE_LOC) as f:
pos = json.load(f)
es = Elasticsearch()
es = Elasticsearch(timeout=30)
stream = BinLogStreamReader(
# TODO parse out from config.py or something

Loading…
Cancel
Save