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/30 13:56:04 UTC

[GitHub] [shardingsphere-elasticjob] jiang2015 commented on issue #1297: LiteJob will create a shutdownhook thread every time as execute job

jiang2015 commented on issue #1297:
URL: https://github.com/apache/shardingsphere-elasticjob/issues/1297#issuecomment-666379990


   I find that the class [ElasticJobExecutor] Constructor is called by other class place as follows:
   1. LocalTaskExecutor#createElasticJobExecutor 
   2.DaemonTaskScheduler#createJobExecutor
   3.TaskExecutor#createJobExecutor
   4.LiteJob.createExecutor
   
   2,3 more modified as singleton class
   1.4 still new Object()
   
   I think the base resolve the problem,ElasticJobExecutor is modified as Sington class it‘s better。


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