fix: force-start tasks bypass HasCapacity check in dispatch loop

This commit is contained in:
Deivid Soto 2026-03-29 20:33:51 +02:00
parent 3badde606e
commit 60176fadc2

View file

@ -272,7 +272,7 @@ func runDaemonStart() error {
for _, t := range tasks {
if t.Mode == "stream" {
go handleStreamTask(ctx, t, reporter, cfg)
} else if manager.HasCapacity() {
} else if t.ForceStart || manager.HasCapacity() {
manager.Submit(ctx, t)
} else {
log.Printf("[%s] skipped: no capacity (max %d)", t.ID[:8], cfg.Download.MaxConcurrent)