ningyougang commented on a change in pull request #5113:
URL: https://github.com/apache/openwhisk/pull/5113#discussion_r640299248
##########
File path:
common/scala/src/main/scala/org/apache/openwhisk/core/entity/ActivationResult.scala
##########
@@ -139,6 +136,10 @@ protected[core] object ActivationResponse extends
DefaultJsonProtocol {
/** true iff status code is OK (HTTP 200 status code), anything else is
considered an error. **/
val okStatus = statusCode == OK.intValue
val ok = okStatus && truncated.isEmpty
+
+ /** true iff status code is ServiceUnavailable (HTTP 503 status code) */
+ val shuttingDown = statusCode == ServiceUnavailable.intValue
Review comment:
~~This is for `Support greaceful shutdown for runtime pod`~~
--
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]