You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2021/07/08 10:02:51 UTC

[GitHub] [shardingsphere-elasticjob] 13761103808 opened a new issue #1925: Ready jobs Is not executed in the order of scheduler time ?

13761103808 opened a new issue #1925:
URL: https://github.com/apache/shardingsphere-elasticjob/issues/1925


   Sometimes, we have too many jobs ,and the resource is  not enough for all jobs.  Then some jobs will wait as ready list in zookeeper  /ready  node.
   But , the ready jobs execute with the order of  name or other ,  not  scheduler time , so  some jobs will  never run .


-- 
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: notifications-unsubscribe@shardingsphere.apache.org

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



[GitHub] [shardingsphere-elasticjob] 13761103808 commented on issue #1925: Ready jobs Is not executed in the order of scheduler time ?

Posted by GitBox <gi...@apache.org>.
13761103808 commented on issue #1925:
URL: https://github.com/apache/shardingsphere-elasticjob/issues/1925#issuecomment-877277495


   No.
   I want the  waiting jobs execute  by the order of  created  time in zookeeper node.
   
   thanks .


-- 
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: notifications-unsubscribe@shardingsphere.apache.org

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



[GitHub] [shardingsphere-elasticjob] 13761103808 commented on issue #1925: Ready jobs Is not executed in the order of scheduler time ?

Posted by GitBox <gi...@apache.org>.
13761103808 commented on issue #1925:
URL: https://github.com/apache/shardingsphere-elasticjob/issues/1925#issuecomment-882016059


   @sunkai-cai @TeslaCN 
   
   Hello  !
   
   We can modify the method  getChildrenKeys of ZookeeperRegistryCenter.getChildrenKeys.
   We need sort by ctime in zk  ,now is sorted by name  string.
   
   ``@Override
       public List<String> getChildrenKeys(final String key) {
           try {
               List<String> result = client.getChildren().forPath(key);
               Collections.sort(result, new Comparator<String>() {
                   
                   @Override
                   public int compare(final String o1, final String o2) {
                       return o2.compareTo(o1);
                   }
               });
               return result;
            //CHECKSTYLE:OFF
           } catch (final Exception ex) {
           //CHECKSTYLE:ON
               RegExceptionHandler.handleException(ex);
               return Collections.emptyList();
           }
       }


-- 
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: notifications-unsubscribe@shardingsphere.apache.org

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



[GitHub] [shardingsphere-elasticjob] sunkai-cai commented on issue #1925: Ready jobs Is not executed in the order of scheduler time ?

Posted by GitBox <gi...@apache.org>.
sunkai-cai commented on issue #1925:
URL: https://github.com/apache/shardingsphere-elasticjob/issues/1925#issuecomment-877569158


   Hi @TeslaCN 
   
   this is need your help.


-- 
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: notifications-unsubscribe@shardingsphere.apache.org

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



[GitHub] [shardingsphere-elasticjob] 13761103808 commented on issue #1925: Ready jobs Is not executed in the order of scheduler time ?

Posted by GitBox <gi...@apache.org>.
13761103808 commented on issue #1925:
URL: https://github.com/apache/shardingsphere-elasticjob/issues/1925#issuecomment-877571383


   Thanks @sunkai-cai @TeslaCN   !! 
   
   By the way ,   Can us  open a interface to the user  ?  
   We can  implement  ourself  execute  order strategy for the jobs in  waiting queue ?


-- 
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: notifications-unsubscribe@shardingsphere.apache.org

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



[GitHub] [shardingsphere-elasticjob] 13761103808 commented on issue #1925: Ready jobs Is not executed in the order of scheduler time ?

Posted by GitBox <gi...@apache.org>.
13761103808 commented on issue #1925:
URL: https://github.com/apache/shardingsphere-elasticjob/issues/1925#issuecomment-881983493


   ![image](https://user-images.githubusercontent.com/38760333/126053024-5d19a44b-03ed-4671-90f8-bed8115eff80.png)
   


-- 
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: notifications-unsubscribe@shardingsphere.apache.org

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



[GitHub] [shardingsphere-elasticjob] sunkai-cai commented on issue #1925: Ready jobs Is not executed in the order of scheduler time ?

Posted by GitBox <gi...@apache.org>.
sunkai-cai commented on issue #1925:
URL: https://github.com/apache/shardingsphere-elasticjob/issues/1925#issuecomment-876966124


   You want to clear unnecessary jobs ?


-- 
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: notifications-unsubscribe@shardingsphere.apache.org

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



[GitHub] [shardingsphere-elasticjob] 13761103808 removed a comment on issue #1925: Ready jobs Is not executed in the order of scheduler time ?

Posted by GitBox <gi...@apache.org>.
13761103808 removed a comment on issue #1925:
URL: https://github.com/apache/shardingsphere-elasticjob/issues/1925#issuecomment-881983493


   ![image](https://user-images.githubusercontent.com/38760333/126053024-5d19a44b-03ed-4671-90f8-bed8115eff80.png)
   


-- 
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: notifications-unsubscribe@shardingsphere.apache.org

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