mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-26 17:26:23 +02:00
fix: update file skipping logic in Google Drive indexer
- Modified the `_should_skip_file` function to prevent skipping of documents with a FAILED status, ensuring they are reprocessed even if their content remains unchanged. - Added a new integration test to verify that FAILED documents are not skipped during the indexing process.
This commit is contained in:
parent
8c41fd91ba
commit
c3d5c865fd
2 changed files with 60 additions and 1 deletions
|
|
@ -149,7 +149,7 @@ async def _should_skip_file(
|
|||
return True, f"File renamed: '{old_name}' → '{file_name}'"
|
||||
|
||||
if not DocumentStatus.is_state(existing.status, DocumentStatus.READY):
|
||||
existing.status = DocumentStatus.ready()
|
||||
return False, None
|
||||
return True, "unchanged"
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue