refresh after sync

This commit is contained in:
Victor Shyba 2021-02-11 22:00:15 -03:00
parent e12fab90d1
commit 9251c87323

View file

@ -42,6 +42,7 @@ WHERE claim.height % {shards_total} = {shard_num}
async def consume(producer):
es = AsyncElasticsearch()
await async_bulk(es, producer, request_timeout=120)
await es.indices.refresh(index=INDEX)
await es.close()