KevinHuSh
commited on
Commit
·
0e3c0e9
1
Parent(s):
d88713b
make sure the error will be recorded. (#672)
Browse files### What problem does this PR solve?
### Type of change
- [x] Refactoring
- rag/svr/task_executor.py +2 -2
rag/svr/task_executor.py
CHANGED
|
@@ -254,8 +254,8 @@ def main():
|
|
| 254 |
try:
|
| 255 |
embd_mdl = LLMBundle(r["tenant_id"], LLMType.EMBEDDING, llm_name=r["embd_id"], lang=r["language"])
|
| 256 |
except Exception as e:
|
| 257 |
-
|
| 258 |
-
|
| 259 |
continue
|
| 260 |
|
| 261 |
st = timer()
|
|
|
|
| 254 |
try:
|
| 255 |
embd_mdl = LLMBundle(r["tenant_id"], LLMType.EMBEDDING, llm_name=r["embd_id"], lang=r["language"])
|
| 256 |
except Exception as e:
|
| 257 |
+
callback(-1, msg=str(e))
|
| 258 |
+
cron_logger.error(str(e))
|
| 259 |
continue
|
| 260 |
|
| 261 |
st = timer()
|