You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by GitBox <gi...@apache.org> on 2020/10/08 04:24:33 UTC

[GitHub] [openwhisk] style95 commented on a change in pull request #4983: [New Scheduler] Initial commit for the scheduler component

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/status-alarm@0.0.2",
       "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:
users@infra.apache.org