simple test DAG

This commit is contained in:
Giambattista Bloisi 2024-03-08 17:26:29 +01:00
parent 031b11a3db
commit d505df8d36
1 changed files with 1 additions and 1 deletions

View File

@ -81,7 +81,7 @@ def bulk_load(entity: str):
buff = io.BufferedReader(gzipfile)
for line in buff:
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),
headers={"Content-Type": "application/json"},
verify=False)