Small fix for indexing (#78)

This commit is contained in:
Chris Weaver 2023-05-22 11:29:25 -07:00 committed by GitHub
parent dd79b9bf79
commit 0c4dcb13c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View File

@ -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:

View File

@ -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 }),
}
);