Skip to content

Commit 4af16af

Browse files
author
Brendan Doyle
committed
more cleanup
1 parent 52403b6 commit 4af16af

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

common/scala/src/main/scala/org/apache/openwhisk/core/entity/InstanceConcurrencyLimit.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,13 @@ protected[core] object InstanceConcurrencyLimit extends ArgNormalizer[InstanceCo
6767
def read(value: JsValue) = {
6868
Try {
6969
val JsNumber(c) = value
70-
require(c.isWhole, "container concurrency limit must be whole number")
70+
require(c.isWhole, "instance concurrency limit must be whole number")
7171

7272
InstanceConcurrencyLimit(c.toInt)
7373
} match {
7474
case Success(limit) => limit
7575
case Failure(e: IllegalArgumentException) => deserializationError(e.getMessage, e)
76-
case Failure(e: Throwable) => deserializationError("container concurrency limit malformed", e)
76+
case Failure(e: Throwable) => deserializationError("instance concurrency limit malformed", e)
7777
}
7878
}
7979
}

common/scala/src/main/scala/org/apache/openwhisk/core/entity/WhiskAction.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ case class ActionLimitsOption(timeout: Option[TimeLimit],
4141
memory: Option[MemoryLimit],
4242
logs: Option[LogLimit],
4343
concurrency: Option[IntraConcurrencyLimit],
44-
containerConcurrency: Option[InstanceConcurrencyLimit] = None)
44+
instances: Option[InstanceConcurrencyLimit] = None)
4545

4646
/**
4747
* WhiskActionPut is a restricted WhiskAction view that eschews properties

core/controller/src/main/scala/org/apache/openwhisk/core/controller/Actions.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ trait WhiskActionsApi extends WhiskCollectionAPI with PostActionActivation with
456456
l.memory getOrElse MemoryLimit(),
457457
l.logs getOrElse LogLimit(),
458458
l.concurrency getOrElse IntraConcurrencyLimit(),
459-
l.containerConcurrency)
459+
l.instances)
460460
} getOrElse ActionLimits()
461461
// This is temporary while we are making sequencing directly supported in the controller.
462462
// The parameter override allows this to work with Pipecode.code. Any parameters other
@@ -553,7 +553,7 @@ trait WhiskActionsApi extends WhiskCollectionAPI with PostActionActivation with
553553
l.memory getOrElse action.limits.memory,
554554
l.logs getOrElse action.limits.logs,
555555
l.concurrency getOrElse action.limits.concurrency,
556-
if (l.containerConcurrency.isDefined) l.containerConcurrency else action.limits.instances)
556+
if (l.instances.isDefined) l.instances else action.limits.instances)
557557
} getOrElse action.limits
558558

559559
// This is temporary while we are making sequencing directly supported in the controller.
@@ -697,7 +697,7 @@ trait WhiskActionsApi extends WhiskCollectionAPI with PostActionActivation with
697697
content.limits
698698
.map(
699699
l =>
700-
l.containerConcurrency
700+
l.instances
701701
.map(
702702
m =>
703703
if (m.maxConcurrentInstances > namespaceConcurrencyLimit)

0 commit comments

Comments
 (0)