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:
Anish Sarkar 2026-03-25 18:51:40 +05:30
parent 8c41fd91ba
commit c3d5c865fd
2 changed files with 60 additions and 1 deletions

View file

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