Skip to content

Commit

Permalink
fix(warehouse): all staging files processing failed (#3137)
Browse files Browse the repository at this point in the history
  • Loading branch information
achettyiitr committed Mar 30, 2023
1 parent cdff792 commit 9dc4b8f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions warehouse/internal/loadfiles/loadfiles.go
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,10 @@ func (lf *LoadFileGenerator) createFromStaging(ctx context.Context, job *model.U
successfulStagingFileIDs = append(successfulStagingFileIDs, resp.JobID)
}

if len(loadFiles) == 0 {
return nil
}

err = lf.LoadRepo.Insert(ctx, loadFiles)
if err != nil {
return fmt.Errorf("inserting load files: %w", err)
Expand Down

0 comments on commit 9dc4b8f

Please sign in to comment.