From 2f7478f0175f4d60dde5c4b2b7dc79d620948109 Mon Sep 17 00:00:00 2001 From: "shenjian@fangjia.com" Date: Mon, 24 Apr 2023 18:23:40 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E9=94=99=E8=AF=AF=E9=87=8D?= =?UTF-8?q?=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dags/business/business/community/price_rating.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dags/business/business/community/price_rating.py b/dags/business/business/community/price_rating.py index 3020b87..47536d5 100644 --- a/dags/business/business/community/price_rating.py +++ b/dags/business/business/community/price_rating.py @@ -66,7 +66,8 @@ def calc_price_rating(city=None): action = {'_op_type': 'update', '_index': index_name, '_id': _id, # 请勿忘记ID - 'doc': row} + 'doc': row, + "_retry_on_conflict": 5} actions.append(action) if len(actions) == 5000: helpers.bulk(client=es206_client.elastic_client, actions=actions)