1
0
Fork 0
mirror of https://gitlab.com/SIGBUS/nyaa.git synced 2024-12-22 18:00:00 +00:00

added timeout to import and sync es

This commit is contained in:
aldacron 2017-05-16 23:15:48 -07:00
parent 6ad43bbcaa
commit f27cf17478
2 changed files with 2 additions and 2 deletions

View file

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

View file

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