Skip to content

Commit

Permalink
supervisor: Make LagBasedAutoScaler get current task count from the c…
Browse files Browse the repository at this point in the history
…onfig
  • Loading branch information
adithyachakilam committed Aug 23, 2024
1 parent 60d4317 commit cb5238e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ private int computeDesiredTaskCount(List<Long> lags)
withinProportion, dataSource
);

int currentActiveTaskCount = supervisor.getActiveTaskGroupsCount();
int currentActiveTaskCount = supervisor.getIoConfig().getTaskCount();
int desiredActiveTaskCount;

if (beyondProportion >= lagBasedAutoScalerConfig.getTriggerScaleOutFractionThreshold()) {
Expand Down

0 comments on commit cb5238e

Please sign in to comment.