fix: load pipeline stats in syncFileStatus and handle missing pipeline data
Problem: - syncFileStatus() doesn't load pipeline progress data - Files stuck in 'processing' without percentage display - pollPipelineProgress() not started when pipeline data missing Solution: 1. Add loadPipelineStats() call in syncFileStatus() for processing files 2. Start pollPipelineProgress() even when pipeline data is missing 3. Ensure progress bar always has data to display Impact: - Progress bar now shows percentage during deep scan - Files no longer stuck in 'processing' state indefinitely - Better handling of edge cases when API data is missing Related: Core team needs to verify get_pipeline_stats API accuracy
This commit is contained in:
@@ -886,6 +886,10 @@ export async function syncFileStatus(fileUuid: string): Promise<any> {
|
||||
delete fileProgressCache.value[fileUuid]
|
||||
}
|
||||
f.status = newStatus
|
||||
|
||||
if (newStatus === 'processing') {
|
||||
await loadPipelineStats(fileUuid, true)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user