mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-09-29 13:25:50 +02:00
Fix paused connectors
This commit is contained in:
@@ -75,6 +75,13 @@ def _should_create_new_indexing(
|
|||||||
return False
|
return False
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
# If the connector is disabled, don't index
|
||||||
|
# NOTE: during an embedding model switch over, we ignore this
|
||||||
|
# and index the disabled connectors as well (which is why this if
|
||||||
|
# statement is below the first condition above)
|
||||||
|
if connector.disabled:
|
||||||
|
return False
|
||||||
|
|
||||||
if connector.refresh_freq is None:
|
if connector.refresh_freq is None:
|
||||||
return False
|
return False
|
||||||
if not last_index:
|
if not last_index:
|
||||||
|
Reference in New Issue
Block a user