Skip to content

Commit

Permalink
For externally managed functions, function worker should not do metri…
Browse files Browse the repository at this point in the history
…cs management (apache#2775)
  • Loading branch information
srkukarni authored Oct 12, 2018
1 parent 412859d commit 592737a
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -651,6 +651,10 @@ public Map<String, FunctionRuntimeInfo> getFunctionRuntimeInfos() {
}

public void updateRates() {
if (runtimeFactory.externallyManaged()) {
// We don't do metrics management for externally managed functions
return;
}
for (Entry<String, FunctionRuntimeInfo> entry : this.functionRuntimeInfoMap.entrySet()) {
RuntimeSpawner functionRuntimeSpawner = entry.getValue().getRuntimeSpawner();
if (functionRuntimeSpawner != null) {
Expand Down

0 comments on commit 592737a

Please sign in to comment.