You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2021/09/01 09:40:21 UTC

[GitHub] [pulsar] liangyuanpeng opened a new issue #11861: Function list API return more message

liangyuanpeng opened a new issue #11861:
URL: https://github.com/apache/pulsar/issues/11861


   **Is your feature request related to a problem? Please describe.**
   
   Now. function list API just return functions name and it's greate if return more message: 
   
   - Running [true/false]
   - workerId ""
   - Restarts (from status.numRestarts)  
   
   like this, 
     
   
   |  NAME  | RUNNING | RESTARTS | WORKERID |  
   |  ----  | ----  | ----  | ----  | 
   | first  | true |  0 | c-standalone-fw-localhost-8080 |  
   | second | false |  10 | c-standalone-fw-localhost-8080 |  
     
   
   **Describe the solution you'd like**
   
   **Describe alternatives you've considered**
   
   **Additional context**
   
   
   I am not familiar with function code, but if want implement this function quickly and easily, Can process the code.  
   
   Request status API for every function name. I am not sure about that.
   
   
   Componentlmpl#listFunctions  
   
   ```
   for (FunctionMetaData functionMetaData : functionStateList) {
               if (InstanceUtils.calculateSubjectType(functionMetaData.getFunctionDetails()).equals(componentType)) {
                *** get status ***
                   retVals.add(functionMetaData.getFunctionDetails().getName());
               }
           }
   ```   


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

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar] codelipenghui commented on issue #11861: Function list API return more message

Posted by GitBox <gi...@apache.org>.
codelipenghui commented on issue #11861:
URL: https://github.com/apache/pulsar/issues/11861#issuecomment-1058886672


   The issue had no activity for 30 days, mark with Stale label.


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

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org