mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
Added TRACE_MALLOC_DELTA and TRACE_MALLOC_FULL (#3555)
### What problem does this PR solve? Added TRACE_MALLOC_DELTA and TRACE_MALLOC_FULL to debug task_executor.py heap. Relates to #3518 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
@ -237,6 +237,7 @@ class ESConnection(DocStoreConnection):
|
||||
res = []
|
||||
for _ in range(ATTEMPT_TIME):
|
||||
try:
|
||||
res = []
|
||||
r = self.es.bulk(index=(indexName), operations=operations,
|
||||
refresh=False, timeout="60s")
|
||||
if re.search(r"False", str(r["errors"]), re.IGNORECASE):
|
||||
@ -248,6 +249,7 @@ class ESConnection(DocStoreConnection):
|
||||
res.append(str(item[action]["_id"]) + ":" + str(item[action]["error"]))
|
||||
return res
|
||||
except Exception as e:
|
||||
res.append(str(e))
|
||||
logging.warning("ESConnection.insert got exception: " + str(e))
|
||||
res = []
|
||||
if re.search(r"(Timeout|time out)", str(e), re.IGNORECASE):
|
||||
|
||||
Reference in New Issue
Block a user