Speed up worker requeue

This commit is contained in:
ferreo 2024-07-30 01:58:10 +01:00
parent fd9e9418b2
commit bc330a258e
2 changed files with 2 additions and 2 deletions

View File

@ -80,7 +80,7 @@ func ProcessNext() error {
return true return true
}) })
if item == nil { if item == nil {
return errors.New("no packages in queue") return nil
} }
err := UpdateBuildFile(*item) err := UpdateBuildFile(*item)
if err != nil { if err != nil {

View File

@ -123,7 +123,7 @@ func processQueueAndStatus(ctx context.Context) {
} }
} }
time.Sleep(10 * time.Second) time.Sleep(1500 * time.Millisecond)
} }
} }
} }