Skip to content

Commit

Permalink
Address feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
piradeepk committed Feb 19, 2021
1 parent 4dabee5 commit 3fb83fa
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ export abstract class QueueProcessingServiceBase extends CoreConstruct {

// Determine the desired task count (minimum) and maximum scaling capacity
if (!this.node.tryGetContext(cxapi.ECS_REMOVE_DEFAULT_DESIRED_COUNT)) {
this.desiredCount = props.desiredTaskCount != null ? props.desiredTaskCount : 1;
this.desiredCount = props.desiredTaskCount ?? 1;
this.minCapacity = props.minScalingCapacity || this.desiredCount;
this.maxCapacity = props.maxScalingCapacity || (2 * this.desiredCount);
} else {
Expand Down

0 comments on commit 3fb83fa

Please sign in to comment.