diff --git a/engine/autoscaler.go b/engine/autoscaler.go index 7584fc2f..0b3ba43a 100644 --- a/engine/autoscaler.go +++ b/engine/autoscaler.go @@ -33,7 +33,7 @@ func (a *Autoscaler) getQueueInfo(_ context.Context) (freeTasks, runningTasks, p return -1, -1, -1, fmt.Errorf("client.QueueInfo: %w", err) } - return info.Stats.Workers, info.Stats.Running, info.Stats.Pending + info.Stats.WaitingOnDeps, nil + return info.Stats.Workers, info.Stats.Running, info.Stats.Pending, nil } func (a *Autoscaler) loadAgents(_ context.Context) error {