mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-04-10 04:49:29 +02:00
Small fix for indexing (#78)
This commit is contained in:
parent
dd79b9bf79
commit
0c4dcb13c3
@ -71,7 +71,8 @@ def run_update() -> None:
|
||||
# prevent race conditions across multiple background jobs. For now,
|
||||
# this assumes we only ever run a single background job at a time
|
||||
not_started_index_attempts = fetch_index_attempts(
|
||||
input_types=[InputType.LOAD_STATE], statuses=[IndexingStatus.NOT_STARTED]
|
||||
input_types=[InputType.LOAD_STATE, InputType.POLL],
|
||||
statuses=[IndexingStatus.NOT_STARTED],
|
||||
)
|
||||
for not_started_index_attempt in not_started_index_attempts:
|
||||
logger.info(
|
||||
@ -115,6 +116,8 @@ def run_update() -> None:
|
||||
error_msg=error_msg,
|
||||
)
|
||||
|
||||
logger.info("Finished update")
|
||||
|
||||
|
||||
def update_loop(delay: int = 60) -> None:
|
||||
while True:
|
||||
|
@ -18,7 +18,7 @@ export const submitIndexRequest = async (
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
body: JSON.stringify({ connector_specific_config: values, inputType }),
|
||||
body: JSON.stringify({ connector_specific_config: values, input_type: inputType }),
|
||||
}
|
||||
);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user