Commit
·
9f35ff5
1
Parent(s):
d2e955e
Provide detailed error information. (#2093)
Browse files### What problem does this PR solve?
Most 'index failure' error is caused by ES.
### Type of change
- [x] Refactoring
Signed-off-by: Jin Hai <[email protected]>
- rag/svr/task_executor.py +1 -1
rag/svr/task_executor.py
CHANGED
@@ -357,7 +357,7 @@ def main():
|
|
357 |
|
358 |
cron_logger.info("Indexing elapsed({}): {:.2f}".format(r["name"], timer() - st))
|
359 |
if es_r:
|
360 |
-
callback(-1, "
|
361 |
ELASTICSEARCH.deleteByQuery(
|
362 |
Q("match", doc_id=r["doc_id"]), idxnm=search.index_name(r["tenant_id"]))
|
363 |
cron_logger.error(str(es_r))
|
|
|
357 |
|
358 |
cron_logger.info("Indexing elapsed({}): {:.2f}".format(r["name"], timer() - st))
|
359 |
if es_r:
|
360 |
+
callback(-1, f"Insert chunk error, detail info please check ragflow-logs/api/cron_logger.log. Please also check ES status!")
|
361 |
ELASTICSEARCH.deleteByQuery(
|
362 |
Q("match", doc_id=r["doc_id"]), idxnm=search.index_name(r["tenant_id"]))
|
363 |
cron_logger.error(str(es_r))
|