Fix: sync data source empty list (#14530)

### What problem does this PR solve?

Fix: sync data source empty list

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
Magicbook1108
2026-04-30 18:56:43 +08:00
committed by GitHub
parent 05ee7f8bb6
commit 5fd4579a2f

View File

@@ -261,15 +261,7 @@ class SyncBase:
task["connector_id"],
task["kb_id"],
)
elif file_list == []:
logging.warning(
"%s deleted-file sync skipped because the snapshot was empty "
"(connector_id=%s, kb_id=%s)",
self.SOURCE_NAME,
task["connector_id"],
task["kb_id"],
)
elif file_list is not None:
elif file_list:
logging.info(
"[%s] Starting stale document reconciliation. Snapshot size: %d "
"(connector_id=%s, kb_id=%s)",