initial stage
This commit is contained in:
parent
19bde3bcef
commit
c6a12baeba
|
@ -145,15 +145,15 @@ def import_catalogue_entities():
|
|||
|
||||
yield {"_index": mapped_index, "_id": doc['id'], "_source": doc}
|
||||
|
||||
succeeded = 0
|
||||
failed = 0
|
||||
for success, item in helpers.parallel_bulk(client, actions=streamed_results(), timeout=5 * 60):
|
||||
if success:
|
||||
succeeded = succeeded + 1
|
||||
else:
|
||||
print("error: " + str(item))
|
||||
failed = failed + 1
|
||||
print(f"Entity: {entity} succes: {success} error: {failed}")
|
||||
succeeded = 0
|
||||
failed = 0
|
||||
for success, item in helpers.parallel_bulk(client, actions=streamed_results(), timeout=5 * 60):
|
||||
if success:
|
||||
succeeded = succeeded + 1
|
||||
else:
|
||||
print("error: " + str(item))
|
||||
failed = failed + 1
|
||||
print(f"Entity: {entity} succes: {success} error: {failed}")
|
||||
|
||||
@task
|
||||
def close_indexes(**kwargs):
|
||||
|
|
Loading…
Reference in New Issue