MCPcopy Create free account
hub / github.com/53AI/53AIHub / CompleteBatch

Method CompleteBatch

api/service/batch_upload_manager.go:528–539  ·  view source on GitHub ↗

CompleteBatch 完成批量上传

(batchID string)

Source from the content-addressed store, hash-verified

526
527// CompleteBatch 完成批量上传
528func (m *BatchUploadManager) CompleteBatch(batchID string) error {
529 batch, err := m.GetBatch(batchID)
530 if err != nil {
531 return err
532 }
533
534 batch.Status = "completed"
535 batch.UpdatedAt = time.Now()
536
537 m.progressStorage.SaveBatch(batch)
538 return nil
539}
540
541// 以下为对 BatchUpload 的并发安全访问器,避免包外直接访问未导出字段 mu
542

Callers

nothing calls this directly

Calls 2

GetBatchMethod · 0.95
SaveBatchMethod · 0.80

Tested by

no test coverage detected