style95 commented on a change in pull request #4983:
URL: https://github.com/apache/openwhisk/pull/4983#discussion_r501440428



##########
File path: 
common/scala/src/main/scala/org/apache/openwhisk/core/connector/Message.scala
##########
@@ -426,3 +426,16 @@ object EventMessage extends DefaultJsonProtocol {
 
   def parse(msg: String) = Try(format.read(msg.parseJson))
 }
+
+object StatusQuery
+case class StatusData(invocationNamespace: String, fqn: String, 
waitingActivation: Int, status: String, data: String)

Review comment:
       This is to query the queue status from the scheduler.
   
   The following is an example.
   When a `MemoryQueue(AkkaFSM)` is running, there can be a different 
combination of status and data.
   This would be useful to figure out the status when any issue happens in a 
queue or scheduler.
   
   ```
   [
   ...
     {
       "data": "RunningData",
       "fqn": "whisk.system/elasticsearch/[email protected]",
       "invocationNamespace": "style95",
       "status": "Running",
       "waitingActivation": 1
     }
   ...
   ]
   ```




----------------------------------------------------------------
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]


Reply via email to