Skip to content

Commit 4267270

Browse files
committed
Revert "fix: Add timeout-based wait for model deletion completion (#8756)"
This reverts commit 9e1b0d0.
1 parent 89076ba commit 4267270

1 file changed

Lines changed: 0 additions & 15 deletions

File tree

core/http/routes/ui_api.go

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -557,21 +557,6 @@ func RegisterUIAPIRoutes(app *echo.Echo, cl *config.ModelConfigLoader, ml *model
557557
galleryService.StoreCancellation(uid, cancelFunc)
558558
go func() {
559559
galleryService.ModelGalleryChannel <- op
560-
// Wait for the deletion operation to complete with a timeout
561-
ctx, cancel := context.WithTimeout(context.Background(), 10*time.Second)
562-
defer cancel()
563-
for {
564-
select {
565-
case <-ctx.Done():
566-
xlog.Warn("Timeout waiting for deletion to complete", "uid", uid)
567-
break
568-
default:
569-
if status := galleryService.GetStatus(uid); status != nil && status.Processed {
570-
break
571-
}
572-
time.Sleep(100 * time.Millisecond)
573-
}
574-
}
575560
cl.RemoveModelConfig(galleryName)
576561
}()
577562

0 commit comments

Comments
 (0)