simple test DAG
This commit is contained in:
parent
031b11a3db
commit
d505df8d36
|
@ -81,7 +81,7 @@ def bulk_load(entity: str):
|
||||||
buff = io.BufferedReader(gzipfile)
|
buff = io.BufferedReader(gzipfile)
|
||||||
for line in buff:
|
for line in buff:
|
||||||
data = json.loads(line)
|
data = json.loads(line)
|
||||||
session.post(f'https://opensearch-cluster.lot1-opensearch-cluster.svc.cluster.local:9200/{entity}_index/_doc/' + requests.utils.quote(data['id'], safe='') + "?refresh=false",
|
session.post(f'https://opensearch-cluster.lot1-opensearch-cluster.svc.cluster.local:9200/{entity}_index/_doc/' + requests.utils.quote(data['local_identifier'], safe='') + "?refresh=false",
|
||||||
data=json.dumps(data),
|
data=json.dumps(data),
|
||||||
headers={"Content-Type": "application/json"},
|
headers={"Content-Type": "application/json"},
|
||||||
verify=False)
|
verify=False)
|
||||||
|
|
Loading…
Reference in New Issue