refine loginfo about graprag progress (#1823)

### What problem does this PR solve?



### Type of change

- [x] Refactoring
This commit is contained in:
Kevin Hu
2024-08-06 16:01:43 +08:00
committed by GitHub
parent 3fd7db40ea
commit 43199c45c3
5 changed files with 32 additions and 15 deletions

View File

@ -317,7 +317,8 @@ class DocumentService(CommonService):
if 0 <= t.progress < 1:
finished = False
prg += t.progress if t.progress >= 0 else 0
msg.append(t.progress_msg)
if t.progress_msg not in msg:
msg.append(t.progress_msg)
if t.progress == -1:
bad += 1
prg /= len(tsks)