We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1916b6b commit a52ea18Copy full SHA for a52ea18
1 file changed
backend/danswer/server/manage/get_state.py
@@ -46,6 +46,7 @@ def connectors_healthcheck(
46
states = get_connectors_state(db_session, tenant_id)
47
error_cnt = 0
48
for state in states:
49
+ error_cnt_for_state = 0
50
if state.cc_pair_status == ConnectorCredentialPairStatus.ACTIVE and \
51
state.last_finished_status == IndexingStatus.FAILED:
52
PAGE_SIZE = 10
@@ -63,8 +64,10 @@ def connectors_healthcheck(
63
64
if attempt.error_msg.startswith("Unknown index attempt"):
65
continue
66
else:
- error_cnt+=1
67
- break
+ error_cnt_for_state += 1
68
+ if error_cnt_for_state > 1:
69
+ error_cnt+=1
70
+ break
71
if error_cnt > 0:
72
success = False
73
message = f"{error_cnt} of {len(states)} connectors failed"
0 commit comments