You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -266,10 +262,10 @@ func (r *AgentPoolReconciler) reconcileAgentAutoscaling(ctx context.Context, ap
266
262
// It now allows retrieving a list of runs for the organization.
267
263
ifuseRunsEndpoint {
268
264
ap.log.Info("Reconcile Agent Autoscaling", "msg", fmt.Sprintf("Proceeding with the new algorithm based on the detected TFE version %s", tfeVersion))
269
-
returnap.pendingWorkspaceRuns(ctx)
265
+
returnpendingWorkspaceRuns(ctx, ap)
270
266
}
271
267
ap.log.Info("Reconcile Agent Autoscaling", "msg", fmt.Sprintf("Proceeding with the legacy algorithm based to the detected TFE version %s", tfeVersion))
272
-
returnap.computeRequiredAgents(ctx)
268
+
returncomputeRequiredAgents(ctx, ap)
273
269
}()
274
270
iferr!=nil {
275
271
ap.log.Error(err, "Reconcile Agent Autoscaling", "msg", "Failed to get agents needed")
0 commit comments