fix: force-start tasks bypass HasCapacity check in dispatch loop
This commit is contained in:
parent
3badde606e
commit
60176fadc2
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue