Commit cc145002 authored by litaolemo's avatar litaolemo

update

parent 950fe01f
......@@ -384,6 +384,8 @@ def bulk_write_into_es(dict_Lst,
bulk_write_resp = es_site_crawler.bulk(index=index,
body=bulk_write_body,
request_timeout=100)
if bulk_write_resp['errors'] is True:
print(bulk_write_resp)
bulk_write_body = ''
# print(bulk_write_resp)
print('Writing into es done')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment