mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-07-22 16:36:47 +08:00
Align Go ingestion boundaries with Python (#16647)
Moves doc_id blob resolution into Parser, tightens chunker/tokenizer to Python output_format semantics, updates extractor list handling, and fixes real-template integration tests.
This commit is contained in:
@@ -130,14 +130,19 @@ func (s *Service) ListIngestionTasks() ([]map[string]interface{}, error) {
|
||||
"document_id": task.DocumentID,
|
||||
"status": task.Status,
|
||||
}
|
||||
if err == nil {
|
||||
if err == nil && latestLog != nil && latestLog.Checkpoint != nil {
|
||||
step, ok := latestLog.Checkpoint["current_step"].(float64)
|
||||
if !ok {
|
||||
showTasks = append(showTasks, showTask)
|
||||
continue
|
||||
}
|
||||
showTask = map[string]interface{}{
|
||||
"id": task.ID,
|
||||
"user_id": task.UserID,
|
||||
"user": user.Email,
|
||||
"document_id": task.DocumentID,
|
||||
"status": task.Status,
|
||||
"step": int(latestLog.Checkpoint["current_step"].(float64)),
|
||||
"step": int(step),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user