ningyougang commented on a change in pull request #4790: Add administrative 
interface to invoker and controller to reconfigure runtimes
URL: https://github.com/apache/openwhisk/pull/4790#discussion_r385021269
 
 

 ##########
 File path: 
core/invoker/src/main/scala/org/apache/openwhisk/core/containerpool/ContainerPool.scala
 ##########
 @@ -279,6 +285,23 @@ class ContainerPool(childFactory: ActorRefFactory => 
ActorRef,
     case RescheduleJob =>
       freePool = freePool - sender()
       busyPool = busyPool - sender()
+    case prewarmConfigList: PreWarmConfigList =>
+      laststPrewarmConfig = prewarmConfigList.list
 
 Review comment:
   Add a inner variable `laststPrewarmConfig`, just make it pointed to the 
passed config runtime.
   Because in this patch: https://github.com/apache/openwhisk/pull/4698
   when received `ContainerRemoved`(may be prewarm container crashed), it will 
backfill the prewarm.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to