refine loginfo about graprag progress (#1823)
### What problem does this PR solve? ### Type of change - [x] Refactoring
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user