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 2020/07/23 09:30:10 UTC

[GitHub] [shardingsphere-elasticjob] Fengxu1234 opened a new issue #1261: job下线后,怎么重新上线?

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


   ## Question
   
   **For English only**, other languages will not accept.
   
   Before asking a question, make sure you have:
   
   - Googled your question.
   - Searched open and closed [GitHub issues](https://github.com/apache/shardingsphere-elastic-job-lite/issues).
   - Read documentation: [ElasticJob Doc](http://shardingsphere.apache.org/elasticjob/docs/elastic-job-lite/00-overview/).
   
   Please pay attention on issues you submitted, because we maybe need more details. 
   If no response anymore and we cannot reproduce it on current information, we will **close it**.
   


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



[GitHub] [shardingsphere-elasticjob] Technoboy- commented on issue #1261: the job was offline, how to change the job to be online

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


   > it means ervery applications also call the api to use the same JobName ?
   
   Yes, take a try. 


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



[GitHub] [shardingsphere-elasticjob] Fengxu1234 commented on issue #1261: the job was offline, how to change the job to be online

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


   > > it means ervery applications also call the api to use the same JobName ?
   > 
   > Yes, take a try.
   
   it's ok , but have a problem , once the application is down , the job could not be brought back online by restarting.


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



[GitHub] [shardingsphere-elasticjob] Technoboy- commented on issue #1261: the job was offline, how to change the job to be online

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


   In current implementation,  you should deploy the above API in two applications at least, and call it on every one .


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



[GitHub] [shardingsphere-elasticjob] terrymanu closed issue #1261: the job was offline, how to change the job to be online

Posted by GitBox <gi...@apache.org>.
terrymanu closed issue #1261:
URL: https://github.com/apache/shardingsphere-elasticjob/issues/1261


   


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



[GitHub] [shardingsphere-elasticjob] Fengxu1234 commented on issue #1261: the job was offline, how to change the job to be online

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


    @RequestMapping(value = "/addJob", method = RequestMethod.POST)
       public void addJob(@RequestBody String data, HttpServletRequest request, HttpServletResponse response) {
   
           JSONObject dataS = JSONObject.parseObject(data);
           String id = dataS.getString("id");
           String cron = dataS.getString("corn");
           JobCoreConfiguration coreConfig = JobCoreConfiguration.newBuilder("JobA" + id, cron, 1).jobParameter(Id).build();
           SimpleJobConfiguration simpleJobConfig = new SimpleJobConfiguration(coreConfig, JobA.class.getCanonicalName());
           JobScheduler jobScheduler = new JobScheduler(zookeeperRegistryCenter, LiteJobConfiguration.newBuilder(simpleJobConfig).build(),jobEventConfiguration);
         
               jobScheduler.init();
    
       }
   
   Passing parameter id to the JobA, ervery  id create a Job as "JobA"+id . This scenario , how to implement to be distributed ?


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



[GitHub] [shardingsphere-elasticjob] terrymanu edited a comment on issue #1261: the job was offline, how to change the job to be online

Posted by GitBox <gi...@apache.org>.
terrymanu edited a comment on issue #1261:
URL: https://github.com/apache/shardingsphere-elasticjob/issues/1261#issuecomment-665463126


   Does it duplicate with #696?


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



[GitHub] [shardingsphere-elasticjob] terrymanu commented on issue #1261: the job was offline, how to change the job to be online

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


   Just restart your job application


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



[GitHub] [shardingsphere-elasticjob] terrymanu commented on issue #1261: the job was offline, how to change the job to be online

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


   Is it duplicate with #696?


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



[GitHub] [shardingsphere-elasticjob] Fengxu1234 commented on issue #1261: the job was offline, how to change the job to be online

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


   it means ervery applications also call the api to use the same JobName ? 
   
   


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